diff --git a/src/info.h b/src/info.h index 8bd1887300..69912534fa 100644 --- a/src/info.h +++ b/src/info.h @@ -344,7 +344,7 @@ public: bool OwnsState(const FState *state) { auto i = ActorInfo(); - return state >= i->OwnedStates && state < i->OwnedStates + i->NumOwnedStates; + return i != nullptr && state >= i->OwnedStates && state < i->OwnedStates + i->NumOwnedStates; } PClassActor *GetReplacement(bool lookskill=true);