use the World module for the data read

develop
Myk Taylor 2023-04-14 01:38:38 -07:00
parent 52b869d908
commit 5ace09fad0
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

@ -2084,8 +2084,7 @@ void Core::handleLoadAndUnloadScripts(color_ostream& out, state_change_event eve
if (!df::global::world)
return;
std::string rawFolder = !isWorldLoaded() ? "" :
"save/" + (df::global::world->cur_savegame.save_dir) + "/init";
std::string rawFolder = !isWorldLoaded() ? "" : "save/" + World::ReadWorldFolder() + "/init";
auto i = table.find(event);
if ( i != table.end() ) {