From b664f7686ee968422104e3cc163be97932d89fa7 Mon Sep 17 00:00:00 2001 From: hnt_ts Date: Sat, 6 Sep 2008 09:11:35 +0000 Subject: [PATCH] Fixed possible crash git-svn-id: https://svn.eduke32.com/eduke32@1059 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 61400cebd..7ff322733 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -7458,7 +7458,7 @@ PALONLY: do { if (display_mirror) tsprite[j].statnum = TSPR_MIRROR; - if (spriteext[tsprite[j].owner].flags & SPREXT_TSPRACCESS && tsprite[j].owner < MAXSPRITES && tsprite[j].owner > 0) + if (tsprite[j].owner < MAXSPRITES && tsprite[j].owner > 0 && spriteext[tsprite[j].owner].flags & SPREXT_TSPRACCESS) { OnEvent(EVENT_ANIMATESPRITES,tsprite[j].owner, myconnectindex, -1); spriteext[tsprite[j].owner].tspr = NULL;