Core/Logs: Small improvement to gameobject-use error log to include player/object name and entry

This commit is contained in:
Shocker
2011-06-16 00:32:08 +03:00
parent f4203e171e
commit c8233a543d

View File

@@ -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;
}