Skip to content

Commit b17211a

Browse files
committed
Fix an error that the top of the stack is 7415C3
1 parent e8e77c9 commit b17211a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ext/Unit/Hooks.DisallowMoving.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ DEFINE_HOOK(0x7415A9, UnitClass_ApproachTarget_SetWeaponIndex, 0x6)
143143
{
144144
GET(UnitClass*, pThis, ESI);
145145

146-
R->EDI(pThis);
146+
R->EDI(VTable::Get(pThis));
147147
R->EAX(UnitApproachTargetTemp::WeaponIndex);
148148
UnitApproachTargetTemp::WeaponIndex = -1;
149149

0 commit comments

Comments
 (0)