mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 02:04:52 +01:00
Core/Logs: Small improvement to gameobject-use error log to include player/object name and entry
This commit is contained in:
@@ -1581,8 +1581,8 @@ void GameObject::Use(Unit* user)
|
||||
return;
|
||||
}
|
||||
default:
|
||||
sLog->outError("GameObject::Use(): unit (type: %u, guid: %u) tries to use object (guid: %u) of unknown type (%u)",
|
||||
user->GetTypeId(), user->GetGUIDLow(), GetGUIDLow(), GetGoType());
|
||||
sLog->outError("GameObject::Use(): unit (type: %u, guid: %u, name: %s) tries to use object (guid: %u, entry: %u, name: %s) of unknown type (%u)",
|
||||
user->GetTypeId(), user->GetGUIDLow(), user->GetName(), GetGUIDLow(), GetEntry(), GetGOInfo()->name.c_str(), GetGoType());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user