]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/timetable.cpp
Fix formatting of goto sensor row type
[r2c2.git] / source / libr2c2 / timetable.cpp
index 670114cdd4454fab36d1be60355a8b22bab2631e..4a78bcafadab289f5e2f88a4004d449b4e32fe06 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of R²C²
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -249,7 +249,7 @@ string Timetable::Row::str() const
        switch(type)
        {
        case GOTO_SENSOR:
-               return "set route to sensor "+get_param<unsigned>(0);
+               return format("set route to sensor %d", get_param<unsigned>(0));
        case GOTO_ZONE:
                return "set route to "+get_param<string>(0);
        case TRAVEL_TO: