From dafb5c5c35144b8cfca7c6eff6e3bdb44a1d4094 Mon Sep 17 00:00:00 2001 From: Compl Yue Date: Sun, 12 May 2024 16:58:39 +0800 Subject: [PATCH] upd wrt review advice --- core/src/com/agateau/pixelwheels/racescreen/Helicopter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/agateau/pixelwheels/racescreen/Helicopter.java b/core/src/com/agateau/pixelwheels/racescreen/Helicopter.java index 5b829152..ef0b04f3 100644 --- a/core/src/com/agateau/pixelwheels/racescreen/Helicopter.java +++ b/core/src/com/agateau/pixelwheels/racescreen/Helicopter.java @@ -179,10 +179,10 @@ public void reset() {} @Override public void dispose() { - sPool.free(this); if (mSoundPlayer != null) { mSoundPlayer.stop(); } + sPool.free(this); } public void setDestination(OrientedPoint point) {