Core/GameObject: Fix GameObject::Use log error message

This commit is contained in:
Machiavelli
2011-08-15 15:41:06 +02:00
parent b560090692
commit 826ec0582a
@@ -1575,8 +1575,9 @@ void GameObject::Use(Unit* user)
return; return;
} }
default: default:
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)", if (GetGoType() >= MAX_GAMEOBJECT_TYPE)
user->GetTypeId(), user->GetGUIDLow(), user->GetName(), GetGUIDLow(), GetEntry(), GetGOInfo()->name.c_str(), 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; break;
} }