Core: Fix warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-10-25 11:25:42 +02:00
parent 4acf6012a8
commit 739f336618
6 changed files with 10 additions and 10 deletions
@@ -896,13 +896,13 @@ bool GameObject::ActivateToQuest(Player *pTarget) const
}
case GAMEOBJECT_TYPE_GENERIC:
{
if (pTarget->GetQuestStatus(GetGOInfo()->_generic.questID) == QUEST_STATUS_INCOMPLETE || GetGOInfo()->_generic.questID == -1)
if (GetGOInfo()->_generic.questID == -1 || pTarget->GetQuestStatus(GetGOInfo()->_generic.questID) == QUEST_STATUS_INCOMPLETE)
return true;
break;
}
case GAMEOBJECT_TYPE_GOOBER:
{
if (pTarget->GetQuestStatus(GetGOInfo()->goober.questId) == QUEST_STATUS_INCOMPLETE || GetGOInfo()->goober.questId == -1)
if (GetGOInfo()->goober.questId == -1 || pTarget->GetQuestStatus(GetGOInfo()->goober.questId) == QUEST_STATUS_INCOMPLETE)
return true;
break;
}
@@ -120,7 +120,7 @@ struct GameObjectInfo
uint32 serverOnly; //2
uint32 large; //3
uint32 floatOnWater; //4
uint32 questID; //5
int32 questID; //5
} _generic;
//6 GAMEOBJECT_TYPE_TRAP
struct