Core/Packets: fixed crash on SMSG_ATTACKSTOP and fixed init of ItemInstance

This commit is contained in:
joschiwald
2015-02-17 21:08:28 +01:00
parent d56d318c7f
commit 2d40d3678d
8 changed files with 35 additions and 48 deletions

View File

@@ -49,7 +49,7 @@ bool ReputationMgr::IsAtWar(uint32 faction_id) const
if (!factionEntry)
{
TC_LOG_ERROR("misc", "ReputationMgr::IsAtWar: Can't get AtWar flag of %s for unknown faction (faction id) #%u.", _player->GetName().c_str(), faction_id);
return 0;
return false;
}
return IsAtWar(factionEntry);