Skip to content

Commit

Permalink
Warning: inform about entity name when bug detected about attachement (
Browse files Browse the repository at this point in the history
  • Loading branch information
mazes-80 authored Dec 15, 2023
1 parent d1a55e9 commit e7be135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/luaentity_sao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void LuaEntitySAO::step(float dtime, bool send_recommended)
// If attached, check that our parent is still there. If it isn't, detach.
if (m_attachment_parent_id && !isAttached()) {
// This is handled when objects are removed from the map
warningstream << "LuaEntitySAO::step() id=" << m_id <<
warningstream << "LuaEntitySAO::step() " << m_init_name << " at: " << PP(m_last_sent_position) << ", id=" << m_id <<
" is attached to nonexistent parent. This is a bug." << std::endl;
clearParentAttachment();
sendPosition(false, true);
Expand Down

0 comments on commit e7be135

Please sign in to comment.