mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix crash on exiting game during battle
This commit is contained in:
parent
5d80457eda
commit
81164100da
@ -142,7 +142,9 @@ CPlayerInterface::CPlayerInterface(PlayerColor Player)
|
||||
|
||||
CPlayerInterface::~CPlayerInterface()
|
||||
{
|
||||
if(CCS->soundh) CCS->soundh->ambientStopAllChannels();
|
||||
if(CCS && CCS->soundh)
|
||||
CCS->soundh->ambientStopAllChannels();
|
||||
|
||||
logGlobal->trace("\tHuman player interface for player %s being destructed", playerID.getStr());
|
||||
delete showingDialog;
|
||||
delete cingconsole;
|
||||
|
Loading…
Reference in New Issue
Block a user