mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-14 11:50:49 +00:00
- Blood: fixed null pointer crash in actBurnSprite.
This commit is contained in:
parent
d90b23ba9a
commit
c6991add46
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ inline void actBurnSprite(DBloodActor* pSource, DBloodActor* pTarget, int nTime)
|
||||||
{
|
{
|
||||||
auto pXSprite = &pTarget->x();
|
auto pXSprite = &pTarget->x();
|
||||||
pXSprite->burnTime = ClipHigh(pXSprite->burnTime + nTime, sprite[pXSprite->reference].statnum == kStatDude ? 2400 : 1200);
|
pXSprite->burnTime = ClipHigh(pXSprite->burnTime + nTime, sprite[pXSprite->reference].statnum == kStatDude ? 2400 : 1200);
|
||||||
pXSprite->burnSource = pSource->s().index;
|
pXSprite->burnSource = pSource? pSource->s().index : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void GetActorExtents(DBloodActor* actor, int* top, int* bottom)
|
inline void GetActorExtents(DBloodActor* actor, int* top, int* bottom)
|
||||||
|
|
Loading…
Reference in a new issue