[8845] fixed some gcc warnings

This commit is contained in:
balrok 2009-11-20 12:44:56 +01:00
parent d45b6884ee
commit 1d362eace4
20 changed files with 51 additions and 52 deletions

View file

@ -1296,7 +1296,7 @@ const char* GameObject::GetNameForLocaleIdx(int32 loc_idx) const
GameObjectLocale const *cl = sObjectMgr.GetGameObjectLocale(GetEntry());
if (cl)
{
if (cl->Name.size() > loc_idx && !cl->Name[loc_idx].empty())
if (cl->Name.size() > (uint)loc_idx && !cl->Name[loc_idx].empty())
return cl->Name[loc_idx].c_str();
}
}