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:
parent
1b10aaa493
commit
cf0d08555b
@ -48,7 +48,10 @@ CSoundHandler::CSoundHandler():
|
||||
{
|
||||
Mix_ChannelFinished([](int channel)
|
||||
{
|
||||
CCS->soundh->soundFinishedCallback(channel);
|
||||
if (CCS)
|
||||
{
|
||||
CCS->soundh->soundFinishedCallback(channel);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user