fix pvpgn crash when creating diablo 2 game https://github.com/HarpyWar/pvpgn/issues/68

This commit is contained in:
HarpyWar 2014-07-23 15:03:50 +04:00
parent 873025eb73
commit a28e67f6be

View file

@ -162,7 +162,8 @@ namespace pvpgn
o_game["currentplayers"] = std_to_string(game->ref);
o_game["totalplayers"] = std_to_string(game->count);
o_game["maxplayers"] = std_to_string(game->maxplayers);
o_game["mapname"] = game->mapname;
if (game->mapname)
o_game["mapname"] = game->mapname;
o_game["option"] = std_to_string(game->option);
o_game["maptype"] = std_to_string(game->maptype);
o_game["tileset"] = std_to_string(game->tileset);