From 6ad3584c69d102a7592eaac1a3d7374cf610895f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 23 May 2015 18:48:53 +0300 Subject: Add missing calls to postInit for windows and popups. --- src/game.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index d30eded3a..7026051da 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -233,14 +233,18 @@ static void createGuiWindows() new EmoteShortcutContainer(nullptr), "emotes.xml", 130, 480); + emoteShortcutWindow->postInit(); outfitWindow = new OutfitWindow(); outfitWindow->postInit(); dropShortcutWindow = new ShortcutWindow("DropShortcut", new VirtShortcutContainer(nullptr, dropShortcut), "drops.xml"); - - spellShortcutWindow = new ShortcutWindow("SpellShortcut", "spells.xml", - 265, 328); + dropShortcutWindow->postInit(); + spellShortcutWindow = new ShortcutWindow( + "SpellShortcut", + "spells.xml", + 265, 328); + spellShortcutWindow->postInit(); for (unsigned f = 0; f < SPELL_SHORTCUT_TABS; f ++) { spellShortcutWindow->addTab(toString(f + 1), -- cgit v1.2.3-70-g09d2