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:
parent
5aa1e9c40a
commit
2cb85bd161
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue