diff --git a/docs/changelog.txt b/docs/changelog.txt index 1e8961c7be..6fffb49e54 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -60,6 +60,7 @@ Template for new versions: ## New Features ## Fixes +- Fixed ``scriptmanager.getModStatePath()`` causing scripts to crash when called ## Misc Improvements diff --git a/library/lua/script-manager.lua b/library/lua/script-manager.lua index cb4abf1f53..cc4a02c6cd 100644 --- a/library/lua/script-manager.lua +++ b/library/lua/script-manager.lua @@ -246,7 +246,7 @@ function getModSourcePath(mod_id) end function getModStatePath(mod_id) - local path = (dfhack.getConfigPath() + ('/mods/%s/')):format(mod_id) + local path = (dfhack.getConfigPath() .. ('/mods/%s/')):format(mod_id) if not dfhack.filesystem.mkdir_recursive(path) then error(('failed to create mod state directory: "%s"'):format(path)) end