mail[Wesnoth-commits] r28665 - /trunk/src/callable_objects.cpp


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

Header


Content

Posted by dragonking on August 17, 2008 - 13:04:
Author: dragonking
Date: Sun Aug 17 13:04:07 2008
New Revision: 28665

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28665&view=rev
Log:
Fixed serialization to string of location callable

Modified:
    trunk/src/callable_objects.cpp

Modified: trunk/src/callable_objects.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/callable_objects.cpp?rev=28665&r1=28664&r2=28665&view=diff
==============================================================================
--- trunk/src/callable_objects.cpp (original)
+++ trunk/src/callable_objects.cpp Sun Aug 17 13:04:07 2008
@@ -62,7 +62,7 @@
 void location_callable::serialize_to_string(std::string& str) const
 {
        std::ostringstream s;
-       s << "loc(" << loc_.x << "," << loc_.y << ")";
+       s << "loc(" << (loc_.x+1) << "," << (loc_.y+1) << ")";
        str = s.str();
 }
 




Related Messages


Powered by MHonArc, Updated Sun Aug 17 13:22:12 2008