X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fruntime.cpp;h=32a401220215dbeeb557e3a53e9b6a5f7ccf6737;hb=071459d05271dd9376364fc3d8c33bf091724321;hp=30b15aeb4b0d105b713255fbba892837481d45a7;hpb=39df551265bff648c1ac166043bb4b046122cc8d;p=blank.git diff --git a/src/app/runtime.cpp b/src/app/runtime.cpp index 30b15ae..32a4012 100644 --- a/src/app/runtime.cpp +++ b/src/app/runtime.cpp @@ -236,12 +236,12 @@ int Runtime::Execute() { if (save.Exists()) { save.Read(config.world); } else { - save.Create(config.world); + save.Write(config.world); } Application app(env); - WorldState world_state(env, config.interface, config.world); + WorldState world_state(env, config.interface, config.world, save); app.PushState(&world_state); PreloadState preloader(env, world_state.GetWorld().Loader());