summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-12-29 12:59:58 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-12-29 12:59:58 +0000
commit8528fc2521f9dbd8b86bf861f088fbc1affaef50 (patch)
tree65d72ef9de2e5edd8cd785304186602dd0527517
parentb32f28d74e9ec5cfe3bc443e2fbffd5de245fd0b (diff)
downloadmana-8528fc2521f9dbd8b86bf861f088fbc1affaef50.tar.gz
mana-8528fc2521f9dbd8b86bf861f088fbc1affaef50.tar.bz2
mana-8528fc2521f9dbd8b86bf861f088fbc1affaef50.tar.xz
mana-8528fc2521f9dbd8b86bf861f088fbc1affaef50.zip
Added the workaround suggested by Doener
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/gui.cpp3
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f0c0faa8..334679cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-09 Jan-Fabian Humann <malastare@gmx.net>
+
+ * src/gui/gui.cpp: Added rather ugly workaround to prevent a on-start
+ crash by Doener.
+
2005-12-29 Björn Steinbrink <B.Steinbrink@gmx.de>
* src/game.cpp, src/gui/popupmenu.cpp, src/net/protocol.cpp: Remove
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 25b794ec..fcb4b0d9 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -172,6 +172,9 @@ Gui::Gui(Graphics *graphics):
mConfigListener = new GuiConfigListener(this);
config.addListener("customcursor", mConfigListener);
+ // XXX FIXME: Just a temporary solution to work around a bug, better way
+ // would be to implement a FontManager class.
+ gui = this;
mPopup = new PopupMenu();
}