Fix bug when loading games with walls

Game would fail to load as it was cutting off the first [
This commit is contained in:
mdiluzio 2014-12-31 18:39:11 +00:00
parent 9c68372f64
commit faa7cdc501

View file

@ -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;
}
}