summaryrefslogtreecommitdiff
path: root/src/unittests/gui/windowmanager_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/gui/windowmanager_unittest.cc')
-rw-r--r--src/unittests/gui/windowmanager_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unittests/gui/windowmanager_unittest.cc b/src/unittests/gui/windowmanager_unittest.cc
index 57f35bf59..ab172a9d4 100644
--- a/src/unittests/gui/windowmanager_unittest.cc
+++ b/src/unittests/gui/windowmanager_unittest.cc
@@ -199,7 +199,7 @@ TEST_CASE("Windows tests", "windowmanager")
gui = new Gui();
gui->postInit(mainGraphics);
touchManager.init();
- UnitsDb::loadUnits();
+ UnitsDb::load();
charServerHandler = new EAthena::CharServerHandler;
serverFeatures = new EAthena::ServerFeatures;
inventoryHandler = new EAthena::InventoryHandler;
@@ -808,6 +808,7 @@ TEST_CASE("Windows tests", "windowmanager")
delete2(connectionDialog);
}
+ UnitsDb::unload();
delete2(localPlayer);
delete2(userPalette);
delete2(client);
@@ -876,7 +877,7 @@ TEST_CASE("WindowManager", "create windows")
gui = new Gui();
gui->postInit(mainGraphics);
touchManager.init();
- UnitsDb::loadUnits();
+ UnitsDb::load();
charServerHandler = new EAthena::CharServerHandler;
serverFeatures = new EAthena::ServerFeatures;
inventoryHandler = new EAthena::InventoryHandler;
@@ -965,6 +966,7 @@ TEST_CASE("WindowManager", "create windows")
settings.login = std::string();
settings.limitFps = true;
+ UnitsDb::unload();
delete2(localPlayer);
delete2(client);
delete2(serverFeatures);