Total-RP / Total-RP-3-Extended

Extended module for the Total RP 3 add-on for World of Warcraft, adding creation tools.
http://extended.totalrp.com
11 stars 13 forks source link

Fix for traded item condition bug #157

Closed Solanya closed 4 years ago

Solanya commented 4 years ago

The issue was first brought because of this item: https://pastebin.com/UtSHcpXg

It would work when imported or after reload, but wouldn't right after receiving it from a trade. After a long time investigating, it turns out the function writing the condition function wasn't reading the condition structure in the correct order, causing it to read garbage and throw an error. Using ipairs instead of pairs guarantees the structure will be read in the correct order even right after the trade.