From 97b33194ddde277d17304407ebb2113075cad276 Mon Sep 17 00:00:00 2001 From: Mitachi <70312009+Mitachi2611@users.noreply.github.com> Date: Tue, 27 Feb 2024 22:56:49 +0100 Subject: [PATCH] Update char_horse.cpp --- Srcs-Server/game/src/char_horse.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Srcs-Server/game/src/char_horse.cpp b/Srcs-Server/game/src/char_horse.cpp index db27da7..e8b0661 100644 --- a/Srcs-Server/game/src/char_horse.cpp +++ b/Srcs-Server/game/src/char_horse.cpp @@ -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,7 +80,8 @@ void CHARACTER::HorseSummon(bool bSummon, bool bFromFar, DWORD dwVnum, const cha #ifdef ENABLE_MOUNT_LIKE_HORSE if (const LPITEM pMountItem = GetWear(WEAR_COSTUME_MOUNT)) - dwVnum = pMountItem->GetValue(1); + if (CMobVnumHelper::IsMount(pMountItem->GetValue(1))) + dwVnum = pMountItem->GetValue(1); #endif /*Example: