Author: soliton
Date: Tue Mar 31 05:06:37 2009
New Revision: 34324
URL: http://svn.gna.org/viewcvs/wesnoth?rev=34324&view=rev
Log:
don't try to move_unit() when we got no path
Modified:
branches/1.6/src/game_events.cpp
Modified: branches/1.6/src/game_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/game_events.cpp?rev=34324&r1=34323&r2=34324&view=diff
==============================================================================
--- branches/1.6/src/game_events.cpp (original)
+++ branches/1.6/src/game_events.cpp Tue Mar 31 05:06:37 2009
@@ -1018,7 +1018,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