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
 | ||||
| 
 | ||||
|  | @ -209,4 +209,4 @@ SOrder GetOrderFromString( const std::string& order ) | |||
|     ret.unit = unit; | ||||
| 
 | ||||
|     return ret; | ||||
| } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue