[9704] Add to achievement_reward support gender dependent rewards.

For example for achievement 1793

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
crackm 2010-04-09 07:05:21 +04:00 committed by VladimirMangos
parent d2ca4a9196
commit 12c3227e32
9 changed files with 70 additions and 29 deletions

View file

@ -1011,7 +1011,7 @@ void ObjectMgr::LoadCreatureModelInfo()
if (!sCreatureDisplayInfoStore.LookupEntry(minfo->modelid))
sLog.outErrorDb("Table `creature_model_info` has model for not existed display id (%u).", minfo->modelid);
if (minfo->gender > GENDER_NONE)
if (minfo->gender >= MAX_GENDER)
{
sLog.outErrorDb("Table `creature_model_info` has wrong gender (%u) for display id (%u).", uint32(minfo->gender), minfo->modelid);
const_cast<CreatureModelInfo*>(minfo)->gender = GENDER_MALE;