From: yoriy <yo...@us...> - 2012-07-20 22:52:06
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc/fsm In directory vz-cvs-4.sog:/tmp/cvs-serv9522/src/games/stendhal/server/entity/npc/fsm Modified Files: Transition.java Log Message: perform a deep copy of etalon object in constructor Index: Transition.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/npc/fsm/Transition.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** Transition.java 20 Jul 2012 08:09:03 -0000 1.25 --- Transition.java 20 Jul 2012 22:52:03 -0000 1.26 *************** *** 128,132 **** * @throws */ ! public Transition(Transition tr) { this.state = tr.state; this.condition = tr.condition; --- 128,134 ---- * @throws */ ! public Transition(Transition trans) { ! Transition tr = new Transition(null, null, null, false, null, null, null, null); ! System.arraycopy(trans, 0, tr, 0, 1); this.state = tr.state; this.condition = tr.condition; *************** *** 136,140 **** this.reply = tr.reply; this.action = tr.action; ! this.label = tr.label; } --- 138,142 ---- this.reply = tr.reply; this.action = tr.action; ! this.label = tr.label; } |