mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix possible crash on starting 2nd battle while intro sound from 1st one
is still playing
This commit is contained in:
parent
873fd33e7a
commit
a1f34e059a
@ -107,7 +107,8 @@ void BattleInterface::playIntroSoundAndUnlockInterface()
|
||||
{
|
||||
auto onIntroPlayed = [this]()
|
||||
{
|
||||
if(LOCPLINT->battleInt)
|
||||
// Make sure that battle have not ended while intro was playing AND that a different one has not started
|
||||
if(LOCPLINT->battleInt.get() == this)
|
||||
onIntroSoundPlayed();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user