fix illegal typecast

fixes crash during intermission caused by activated and held grenade
This commit is contained in:
aurhat
2014-09-11 10:47:44 +02:00
committed by ac-stef
parent 16bf7c01cf
commit 414c69fef7
+1 -1
View File
@@ -974,7 +974,7 @@ void timeupdate(int milliscur, int millismax)
conoutf(_("intermission:"));
conoutf(_("game has ended!"));
consolescores();
((sniperrifle *)player1->weaponsel)->scoped = false;
((sniperrifle *)player1->weapons[GUN_SNIPER])->scoped = false;
showscores(true);
if(identexists("start_intermission")) execute("start_intermission");
}