Skip to content
Snippets Groups Projects
Commit 4e8a9755 authored by DarkGod's avatar DarkGod
Browse files

Damage types internal representation changed so that addons can not mess up...

Damage types internal representation changed so that addons can not mess up savefiles. This however *breaks all savefiles* to save the future ones!
parent 16f1ac37
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ function _M:newDamageType(t)
end
end
table.insert(self.dam_def, t)
self[t.type] = #self.dam_def
self.dam_def[t.type] = t
self[t.type] = t.type
end
function _M:get(id)
......
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