diff --git a/source/ttrts/formatters.cpp b/source/ttrts/formatters.cpp index 0127803..6d6d03a 100644 --- a/source/ttrts/formatters.cpp +++ b/source/ttrts/formatters.cpp @@ -92,7 +92,7 @@ CTTRTSGame GetGameFromString( const std::string& input ) size_t pos; while ( ( pos = walls_str.find(']') ) != std::string::npos ) { - std::string pos_string = walls_str.substr(1,pos); + std::string pos_string = walls_str.substr(0,pos); // Use scanf to extract positions @@ -209,4 +209,4 @@ SOrder GetOrderFromString( const std::string& order ) ret.unit = unit; return ret; -} \ No newline at end of file +}