Skip to content

Commit 0c3858f

Browse files
committed
Fix #2326
1 parent e4f0c4f commit 0c3858f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Ext/Techno/Hooks.Misc.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,10 @@ DEFINE_HOOK(0x4C6CF0, EventClass_RespondToEvent_CheckControllability, 0x8) // P
10751075
GET(EventClass* const, pThis, ESI);
10761076

10771077
auto const pTechno = pThis->MegaMission.Whom.As_Techno();
1078+
1079+
if (!pTechno)
1080+
return SkipGameCode;
1081+
10781082
auto const pHouse = pTechno->GetOwningHouse();
10791083

10801084
if (!TechnoExt::CanReceiveEvent(pTechno, pHouse))

0 commit comments

Comments
 (0)