If the system uses very high memory addresses this error will be hit

This commit is contained in:
Emile Belanger 2022-07-05 15:49:39 +01:00 committed by Christoph Oelckers
parent fae4166fae
commit edc8204a61
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ static void CheckLabel(PClassActor *obj, FStateLabel *slb, int useflag, FName st
auto state = slb->State;
if (state != nullptr)
{
if (intptr_t(state) <= 0xffff)
if (uintptr_t(state) <= 0xffff)
{
// can't do much here aside from printing a message and aborting.
I_Error("Bad state label %s in actor %s", slb->Label.GetChars(), obj->TypeName.GetChars());