fix illegal typecast
fixes crash during intermission caused by activated and held grenade
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user