Author: brunowolff
Date: Fri Mar 21 20:36:43 2008
New Revision: 24954
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24954&view=rev
Log:
Backport r24847
Modified:
branches/1.4/src/ai_python.cpp
Modified: branches/1.4/src/ai_python.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.4/src/ai_python.cpp?rev=24954&r1=24953&r2=24954&view=diff
==============================================================================
--- branches/1.4/src/ai_python.cpp (original)
+++ branches/1.4/src/ai_python.cpp Fri Mar 21 20:36:43 2008
@@ -738,7 +738,7 @@
// e.g. when checking all positions in a certain radius at the map
border.
unsigned char x = static_cast<unsigned>(obj->location_->x);
unsigned char y = static_cast<unsigned>(obj->location_->y);
- return x << 8 + y;
+ return (x << 8) + y;
}
static PyGetSetDef location_getseters[] = {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits