Fix walls in strings and move constructor

This commit is contained in:
Marc Di Luzio 2015-01-07 13:25:16 +00:00
parent 7811daa78b
commit 30af43ae95
2 changed files with 2 additions and 1 deletions

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(0,pos);
std::string pos_string = walls_str.substr(0,pos+1);
// Use scanf to extract positions

View file

@ -17,6 +17,7 @@ CTTRTSGame::CTTRTSGame(CTTRTSGame&& game)
, dimensions(std::move(game.dimensions))
, turn(std::move(game.turn))
, name(std::move(game.name))
, m_walls(std::move(game.m_walls))
{
}