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

Stores do not loose existing items when restocking

git-svn-id: http://svn.net-core.org/repos/t-engine4@6147 51575b47-30f0-44d4-a5cc-537603b46e54
parent a343e2b7
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,8 @@ function _M:loadup(level, zone, force_nb)
for i = #inven, 1, -1 do
local e = inven[i]
inven[i] = nil
if (s.empty_before_restock and not e.__store_forget) or (e.__force_store_forget) then
table.remove(inven, i)
e:removed()
end
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