Update char_horse.cpp

This commit is contained in:
Mitachi
2024-02-27 22:56:49 +01:00
parent e7169d6dda
commit 97b33194dd

View File

@ -9,7 +9,7 @@
#ifdef ENABLE_MOUNT_LIKE_HORSE
if (const LPITEM pMountItem = GetWear(WEAR_COSTUME_MOUNT))
if (CMobVnumHelper::IsMount(dwMountVnum))
if (CMobVnumHelper::IsMount(pMountItem->GetValue(1)))
dwMountVnum = pMountItem->GetValue(1);
#endif
@ -80,6 +80,7 @@ void CHARACTER::HorseSummon(bool bSummon, bool bFromFar, DWORD dwVnum, const cha
#ifdef ENABLE_MOUNT_LIKE_HORSE
if (const LPITEM pMountItem = GetWear(WEAR_COSTUME_MOUNT))
if (CMobVnumHelper::IsMount(pMountItem->GetValue(1)))
dwVnum = pMountItem->GetValue(1);
#endif