In line 1314 of DLC0003/scripts/components/inventory.lua, slots of the container is iterated like this:
for k = 1, #container.slots do
However, container.slots is not a sequence, meaning the length operator will return an incorrect value, therefore it will not iterate through all the slots, ending up not consuming oincs placed in the container. It should be iterated using the pairs function, same as container.Count method:
for k,v in pairs(self.slots) do
@DiogoW Please fix this infinite money glitch, if you are still working on DS
Steps to Reproduce
See above
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now