Small fix
This commit is contained in:
parent
8310b1b768
commit
b5548902be
@ -43,7 +43,7 @@ MenuScreen::MenuScreen(Engine* engine_) : Screen(engine_) {
|
|||||||
button->listenAction([this, panel](GUI*) {
|
button->listenAction([this, panel](GUI*) {
|
||||||
std::cout << "-- loading world" << std::endl;
|
std::cout << "-- loading world" << std::endl;
|
||||||
EngineSettings& settings = engine->getSettings();
|
EngineSettings& settings = engine->getSettings();
|
||||||
path folder = enginefs::get_worlds_folder()/"world";
|
path folder = enginefs::get_worlds_folder()/path("world");
|
||||||
World* world = new World("world", folder, 42, settings);
|
World* world = new World("world", folder, 42, settings);
|
||||||
|
|
||||||
auto screen = new LevelScreen(engine, world->loadLevel(settings));
|
auto screen = new LevelScreen(engine, world->loadLevel(settings));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user