mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- fixed a random crash with an empty sprite I just experienced.
This commit is contained in:
parent
0ee28fb45e
commit
fd6a71cac5
1 changed files with 1 additions and 1 deletions
|
@ -2854,7 +2854,7 @@ spritetype *actDropObject(spritetype *pSprite, int nType) {
|
||||||
else if (nType >= kItemAmmoBase && nType < kItemAmmoMax) pSprite2 = actDropAmmo(pSprite, nType);
|
else if (nType >= kItemAmmoBase && nType < kItemAmmoMax) pSprite2 = actDropAmmo(pSprite, nType);
|
||||||
else if (nType >= kItemWeaponBase && nType < kItemWeaponMax) pSprite2 = actDropWeapon(pSprite, nType);
|
else if (nType >= kItemWeaponBase && nType < kItemWeaponMax) pSprite2 = actDropWeapon(pSprite, nType);
|
||||||
|
|
||||||
if (pSprite2) {
|
if (pSprite2 && pSprite->picnum > -1) {
|
||||||
int top, bottom;
|
int top, bottom;
|
||||||
GetSpriteExtents(pSprite2, &top, &bottom);
|
GetSpriteExtents(pSprite2, &top, &bottom);
|
||||||
if (bottom >= pSprite2->z)
|
if (bottom >= pSprite2->z)
|
||||||
|
|
Loading…
Reference in a new issue