Fix crashing when restoring underwater ambience.

This commit is contained in:
Mari the Deer 2020-04-21 12:06:23 +02:00
commit 68c1a8515f

View file

@ -1746,7 +1746,7 @@ Class SWWMHandler : EventHandler
// restore underwater sounds for players
for ( int i=0; i<MAXPLAYERS; i++ )
{
if ( !playeringame[i] || (players[i].mo is 'Demolitionist') ) continue;
if ( !playeringame[i] || !(players[i].mo is 'Demolitionist') ) continue;
Demolitionist(players[i].mo).CheckUnderwaterAmb(true);
}
}