- SW: processWeapon must check for valid player sprites.

On map start it can happen that this gets called with an incompletely set up map.
This commit is contained in:
Christoph Oelckers 2021-05-11 00:21:50 +02:00
parent 10a6515b9a
commit 3194efc646

View file

@ -80,6 +80,7 @@ enum
static void processWeapon(PLAYERp const pp)
{
if (pp->PlayerSprite < 0) return;
USERp u = User[pp->PlayerSprite].Data();
int i;