From 2433ba042b2e39b0306a04056136a18ca1323136 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 23 Feb 2009 01:51:19 +0000 Subject: (svn r15554) -Fix: -v null crashing in 2051 due to trying to show the high score of the spectator. --- src/highscore_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/highscore_gui.cpp b/src/highscore_gui.cpp index d6400bb6a..372e5553b 100644 --- a/src/highscore_gui.cpp +++ b/src/highscore_gui.cpp @@ -193,8 +193,8 @@ void ShowHighscoreTable(int difficulty, int8 ranking) * if it was high enough */ void ShowEndGameChart() { - /* Dedicated server doesn't need the highscore window */ - if (_network_dedicated) return; + /* Dedicated server doesn't need the highscore window and neither does -v null. */ + if (_network_dedicated || (!_networking && !IsValidCompanyID(_local_company))) return; HideVitalWindows(); DeleteWindowByClass(WC_ENDSCREEN); -- cgit v1.2.3-70-g09d2