mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix possible memory leaks in sound handler, simplify API
This commit is contained in:
@@ -357,7 +357,7 @@ bool MovementAnimation::init()
|
||||
|
||||
if (moveSoundHandler == -1)
|
||||
{
|
||||
moveSoundHandler = ENGINE->sound().playSound(stack->unitType()->sounds.move, -1);
|
||||
moveSoundHandler = ENGINE->sound().playSoundLooped(stack->unitType()->sounds.move);
|
||||
}
|
||||
|
||||
Point begPosition = owner.stacksController->getStackPositionAtHex(prevHex, stack);
|
||||
|
||||
Reference in New Issue
Block a user