diff --git a/src/frontend/menu.cpp b/src/frontend/menu.cpp index e132f8db..7aecd293 100644 --- a/src/frontend/menu.cpp +++ b/src/frontend/menu.cpp @@ -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();