Skip to content

Commit 606cd05

Browse files
committed
Revert incomplete/non-functional EBolt crash fix
1 parent eb54022 commit 606cd05

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Misc/Bugfixes.CommonCrashes.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,3 @@ DEFINE_HOOK(0x65DC17, DoReinforcements_FixCrash, 0x6)
7676

7777
return 0;
7878
}
79-
80-
// Fix crash at 4C2C19
81-
void __fastcall EBolt_SetOwnerAndWeapon_FixCrash(EBolt* pThis, void*, UnitClass* pOwner, int idxWeapon)
82-
{
83-
// vanilla code
84-
if (pOwner && pOwner->WhatAmI() == AbstractType::Unit && pOwner->IsAlive && !pOwner->InLimbo)
85-
{
86-
pThis->Owner = pOwner;
87-
pThis->WeaponSlot = idxWeapon;
88-
}
89-
// correction code
90-
else
91-
{
92-
pThis->Owner = 0;
93-
pThis->WeaponSlot = 0;
94-
}
95-
}
96-
97-
DEFINE_JUMP(CALL, 0x6FD606, GET_OFFSET(EBolt_SetOwnerAndWeapon_FixCrash)); // Replace single call
98-
DEFINE_JUMP(LJMP, 0x4C2BD0, GET_OFFSET(EBolt_SetOwnerAndWeapon_FixCrash)); // For in case another module tries to call function

0 commit comments

Comments
 (0)