From a69521970793424754421c8a5fba2eb465e817e6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 4 Feb 2011 13:23:05 +0000 Subject: Made time(), timestamp() and related methods non-virtual, corrects a crash when the dedicated server quits. --- src/dedicated/console.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dedicated') diff --git a/src/dedicated/console.cc b/src/dedicated/console.cc index 2c4c0da..c2b71c0 100644 --- a/src/dedicated/console.cc +++ b/src/dedicated/console.cc @@ -475,9 +475,9 @@ void Console::frame() if (input_updated) { draw_input(); } - if (roundf(core::application()->time()) != prev_time) { + if (core::game() && (roundf(core::game()->time()) != prev_time)) { draw_status(); - prev_time = roundf(core::application()->time()); + prev_time = roundf(core::game()->time()); input_updated = true; } if (input_updated) { -- cgit v1.2.3