1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

tests: GameWorld needs a loaded GameData

dependency tree:
GameWorld -> SoundManager -> FileIndex
This commit is contained in:
Anonymous Maarten 2018-08-21 11:38:11 +02:00 committed by Daniel Evans
parent d9255cb5df
commit 6aa9b3a1b7

View File

@ -7,10 +7,9 @@ BOOST_AUTO_TEST_SUITE(GameDataTests)
#if RW_TEST_WITH_DATA
BOOST_AUTO_TEST_CASE(test_object_data) {
GameData gd(&Global::get().log, Global::getGamePath());
GameWorld gw(&Global::get().log, &gd);
gd.load();
GameWorld gw(&Global::get().log, &gd);
{
auto def = gd.findModelInfo<SimpleModelInfo>(1100);