Skip to content

Commit b2ffc72

Browse files
committed
CMaNGOS: Fix variable reference for WotLK core change
1 parent 3420935 commit b2ffc72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

methods/CMangos/PlayerMethods.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3158,7 +3158,11 @@ namespace LuaPlayer
31583158
}
31593159
else
31603160
{
3161+
#if ELUNA_EXPANSION != EXP_WOTLK
31613162
player->DestroyItemCount(item, itemCount, true);
3163+
#else
3164+
player->DestroyItemCount(*item, itemCount, true);
3165+
#endif
31623166
}
31633167
return 0;
31643168
}

0 commit comments

Comments
 (0)