World creation fix

This commit is contained in:
MihailRis 2023-12-18 18:18:11 +03:00
parent 9657f04ae8
commit 3c89b9c083

View File

@ -279,7 +279,7 @@ Panel* create_new_world_panel(Engine* engine, PagesControl* menu) {
// TODO: complete and move somewhere
auto resdir = engine->getPaths()->getResources();
auto packs = engine->getContentPacks();
auto& packs = engine->getContentPacks();
packs.clear();
packs.push_back(ContentPack::read(resdir/path("content/base")));
engine->loadContent();