summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-23 18:48:53 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-23 18:48:53 +0300
commit6ad3584c69d102a7592eaac1a3d7374cf610895f (patch)
treed7a5bb7d213d029d3d820179e93da46bb023008c /src/game.cpp
parent2443f62e578283b20aaed1874fb356753774cf79 (diff)
downloadmv-6ad3584c69d102a7592eaac1a3d7374cf610895f.tar.gz
mv-6ad3584c69d102a7592eaac1a3d7374cf610895f.tar.bz2
mv-6ad3584c69d102a7592eaac1a3d7374cf610895f.tar.xz
mv-6ad3584c69d102a7592eaac1a3d7374cf610895f.zip
Add missing calls to postInit for windows and popups.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 7 insertions, 3 deletions
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),