- make "activatecheat" pass a raw string to shadow warrior's cheat processor

- added a nullptr check
This commit is contained in:
Rachael Alexanderson 2020-01-23 07:12:12 -05:00
parent 0f3b3300fb
commit 929fc880ee
1 changed files with 1 additions and 1 deletions

View File

@ -2477,7 +2477,7 @@ restart_grand:
// try and see whether this sprite's picnum has sector-like clipping data // try and see whether this sprite's picnum has sector-like clipping data
i = pictoidx[spr->picnum]; i = pictoidx[spr->picnum];
// handle sector-like floor sprites separately // handle sector-like floor sprites separately
while (i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32)) while ((&clipmapinfo != nullptr) && i>=0 && (cstat&32) != (clipmapinfo.sector[sectq[clipinfo[i].qbeg]].CM_CSTAT&32))
i = clipinfo[i].next; i = clipinfo[i].next;
if (i>=0 && clipspritenum<MAXCLIPNUM) if (i>=0 && clipspritenum<MAXCLIPNUM)
{ {