mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fixed the p->player null check in destroyed-kart.cpp being a part of hasCustomHusk rather than being a part of pValid as it's supposed to be
This commit is contained in:
parent
2bdc014006
commit
f3ed9f580e
1 changed files with 2 additions and 2 deletions
|
|
@ -316,8 +316,8 @@ struct Kart : Mobj
|
||||||
}
|
}
|
||||||
|
|
||||||
Mobj* p = player();
|
Mobj* p = player();
|
||||||
bool pValid = Mobj::valid(p);
|
bool pValid = Mobj::valid(p) && p->player;
|
||||||
bool hasCustomHusk = pValid && p->player && skins[p->player->skin].sprites[SPR2_DKRT].numframes;
|
bool hasCustomHusk = pValid && skins[p->player->skin].sprites[SPR2_DKRT].numframes;
|
||||||
|
|
||||||
if(hasCustomHusk)
|
if(hasCustomHusk)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue