stuck with weird problem. Party has a container in backpack and I want to destroy item in that container via item:destroy. The issue is item is not destroyed and on next iteration it crashes with "bad object" error.
Quick example:
Code: Select all
for ii in ito:containedItems() do
for j = 1, #fd do
if ii.name == fd[j] then
print("Found. Destroying "..ii.name)
ii:destroy()
break
end
end
end