Use empty() instead of comparing size() with 0.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2010-01-03 18:44:58 +00:00
parent 43c515a31a
commit 3b6dd6f1d1

View File

@ -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: