mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[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:
parent
d2ca4a9196
commit
12c3227e32
9 changed files with 70 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue