Skip to content
Snippets Groups Projects
Commit abf44743 authored by dg's avatar dg
Browse files

Fixes the 'Restart the same character' option in the death dialog from...

Fixes the 'Restart the same character' option in the death dialog from properly restarting your character if its name contains any non-alphanumeric characters.


git-svn-id: http://svn.net-core.org/repos/t-engine4@5360 51575b47-30f0-44d4-a5cc-537603b46e54
parent 505f08f2
No related branches found
No related tags found
No related merge requests found
......@@ -923,9 +923,10 @@ function _M:selectType(type) end
function _M:on_register()
if __module_extra_info.auto_quickbirth then
local qb_short_name = __module_extra_info.auto_quickbirth:gsub("[^a-zA-Z0-9_-.]", "_")
local lss = Module:listVaultSavesForCurrent()
for i, pm in ipairs(lss) do
if pm.short_name == __module_extra_info.auto_quickbirth then
if pm.short_name == qb_short_name then
self:loadPremade(pm)
break
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment