Fix bug when loading games with walls
Game would fail to load as it was cutting off the first [
This commit is contained in:
parent
9c68372f64
commit
faa7cdc501
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue