mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 20:42:11 +00:00
- fixed crash in Last Warrior map 9.
Really, asserts should not be used to test for errors that can actually happen!
This commit is contained in:
parent
998def2487
commit
f8aacb3825
1 changed files with 2 additions and 2 deletions
|
@ -16999,7 +16999,7 @@ bool SpriteWarpToSurface(DSWActor* actor)
|
|||
}
|
||||
}
|
||||
|
||||
ASSERT(Found);
|
||||
if (!Found) return false;
|
||||
|
||||
if (underActor->spr.lotag == 0)
|
||||
return false;
|
||||
|
@ -17019,7 +17019,7 @@ bool SpriteWarpToSurface(DSWActor* actor)
|
|||
}
|
||||
}
|
||||
|
||||
ASSERT(Found);
|
||||
if (!Found) return false;
|
||||
|
||||
// get the offset from the under sprite
|
||||
sx = underActor->spr.pos.X - actor->spr.pos.X;
|
||||
|
|
Loading…
Reference in a new issue