1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-11 13:15:38 +02:00

Crash fix

Fixed a crash that could occur when closing the game.
This commit is contained in:
Xilmi 2024-07-06 15:34:36 +02:00
parent 1b10aaa493
commit cf0d08555b

View File

@ -48,7 +48,10 @@ CSoundHandler::CSoundHandler():
{
Mix_ChannelFinished([](int channel)
{
CCS->soundh->soundFinishedCallback(channel);
if (CCS)
{
CCS->soundh->soundFinishedCallback(channel);
}
});
}
}