mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 17:53:31 +00:00
Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
43c515a31a
commit
3b6dd6f1d1
@ -577,7 +577,7 @@ void server::run() {
|
||||
ntime::source::get_source().start_frame();
|
||||
try {
|
||||
// We are going to waith 10 seconds before shutting down so users can get out of game.
|
||||
if (graceful_restart && games_.size() == 0 && ++graceful_counter > 500 )
|
||||
if (graceful_restart && games_.empty() && ++graceful_counter > 500 )
|
||||
{
|
||||
// TODO: We should implement client side autoreconnect.
|
||||
// Idea:
|
||||
|
Loading…
x
Reference in New Issue
Block a user