diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-03-19 22:58:24 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-03-19 22:58:24 -0400 |
commit | fc3afd1d6460b2aa453167498979bbf7a636ef45 (patch) | |
tree | 390d5003901ec8b6e951dae2daedb485033c8b6e /src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java | |
parent | 0ebc2f2c92e4b51069f497aca9f715198010bdf2 (diff) | |
download | fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.tar.gz fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.tar.bz2 fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.zip |
Engine: Fixed many potential bugs
Identified by FindBugs. http://findbugs.sourceforge.net/
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java index d05a3d8..dae49cb 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/specialmove/MoveEventThread.java | |||
@@ -9,6 +9,7 @@ import com.fourisland.fourpuzzle.Game; | |||
9 | import com.fourisland.fourpuzzle.gamestate.mapview.event.Event; | 9 | import com.fourisland.fourpuzzle.gamestate.mapview.event.Event; |
10 | import com.fourisland.fourpuzzle.gamestate.mapview.event.LayerEvent; | 10 | import com.fourisland.fourpuzzle.gamestate.mapview.event.LayerEvent; |
11 | import java.util.ArrayList; | 11 | import java.util.ArrayList; |
12 | import java.util.Arrays; | ||
12 | import java.util.List; | 13 | import java.util.List; |
13 | import java.util.Vector; | 14 | import java.util.Vector; |
14 | import java.util.concurrent.ExecutorService; | 15 | import java.util.concurrent.ExecutorService; |
@@ -34,7 +35,7 @@ public class MoveEventThread implements Runnable { | |||
34 | public MoveEventThread(Event ev, MoveEvent[] actions) | 35 | public MoveEventThread(Event ev, MoveEvent[] actions) |
35 | { | 36 | { |
36 | this.ev = ev; | 37 | this.ev = ev; |
37 | this.actions = actions; | 38 | this.actions = Arrays.copyOf(actions, actions.length); |
38 | } | 39 | } |
39 | 40 | ||
40 | public void start() | 41 | public void start() |