Skip to content
Snippets Groups Projects
Commit f3ed9f58 authored by Jack's avatar Jack
Browse files

Fixed the p->player null check in destroyed-kart.cpp being a part of...

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
parent 2bdc0140
No related branches found
No related tags found
1 merge request!55SPR2_DKRT: A new SPR2 which allows character WADs to define a unique kart explosion husk
......@@ -316,8 +316,8 @@ struct Kart : Mobj
}
Mobj* p = player();
bool pValid = Mobj::valid(p);
bool hasCustomHusk = pValid && p->player && skins[p->player->skin].sprites[SPR2_DKRT].numframes;
bool pValid = Mobj::valid(p) && p->player;
bool hasCustomHusk = pValid && skins[p->player->skin].sprites[SPR2_DKRT].numframes;
if(hasCustomHusk)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment