From fa26ae2980556c5f166644e4591acd0634f44520 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 27 Feb 2010 08:08:26 +0000 Subject: [PATCH] Passing NULL GameInfo is OK --- Src/gui/gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/gui/gui.cpp b/Src/gui/gui.cpp index e9a0cf6..784eb2e 100644 --- a/Src/gui/gui.cpp +++ b/Src/gui/gui.cpp @@ -433,7 +433,9 @@ Font *Gui::loadThemeFont(const char *dir, const char *what, int size) void Gui::updateGameInfo(GameInfo *gi) { - panic_if(!gi, "gi must be set\n"); + /* Ignore if empty */ + if(!gi) + return; /* Store the current game info */ this->saveGameInfo(this->metadata_base_path, this->cur_gameInfo->filename);