Author: soliton
Date: Tue Mar 31 05:07:44 2009
New Revision: 34325
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34325&view=rev
Log:
don't try to move_unit() when we got no path
Modified:
trunk/src/game_events.cpp
Modified: trunk/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=34325&r1=34324&r2=34325&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Tue Mar 31 05:07:44 2009
@@ -1024,7 +1024,7 @@
src = dst;
}
- unit_display::move_unit(path, dummy_unit, *teams);
+ if (!path.empty()) unit_display::move_unit(path,
dummy_unit, *teams);
}
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits