mail[Wesnoth-commits] r24954 - /branches/1.4/src/ai_python.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by bruno on March 21, 2008 - 21:02:
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[] = {




Related Messages


Powered by MHonArc, Updated Fri Mar 21 21:21:25 2008