fix an uncaught bad lexical cast exception

coverity reports that it is uncaught and would therefore crash
the server if it occurred
This commit is contained in:
Chris Beck 2014-11-17 18:50:04 -05:00
parent 5aa1e9c40a
commit 2cb85bd161

View file

@ -68,7 +68,7 @@ void wesnothd::player::mark_available(const int game_id,
} else {
cfg_.set_attr("available", "no");
}
cfg_.set_attr_dup("game_id", lexical_cast<std::string>(game_id).c_str());
cfg_.set_attr_dup("game_id", lexical_cast_default<std::string>(game_id).c_str());
cfg_.set_attr_dup("location", location.c_str());
}