Author: esr
Date: Sun Oct 12 22:52:49 2008
New Revision: 30102

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30102&view=rev
Log:
trackplacer: fix bug in erasure code.

Modified:
    trunk/data/tools/trackplacer

Modified: trunk/data/tools/trackplacer
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30102&r1=30101&r2=30102&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Sun Oct 12 22:52:49 2008
@@ -379,9 +379,9 @@
                 candidates = self.journey.find(x, y)
                 if len(candidates) == 1:
                     # Prefer to delete the most recent candidate
-                    action = self.journey.track[candidates[-1]][0]
+                    (action, x, y) = self.journey.track[candidates[-1]]
                     self.draw_feature(widget, x, y, action, erase=True)
-                    self.journey.remove(feature[0], feature[1])
+                    self.journey.remove(x, y)
             self.log("Track is %s" % self.journey)
         return True
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to