Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/dedicated')
-rw-r--r--src/dedicated/console.cc4
1 files changed, 2 insertions, 2 deletions
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) {