1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-01 12:57:51 +02:00

Merge pull request #4231 from Xilmi/develop

Crash fix
This commit is contained in:
Ivan Savenko 2024-07-06 19:16:41 +03:00 committed by GitHub
commit f414336243
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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