Commit 7561114
committed
Bug Fix when loading item ids with buffers in sub inventories
Closes #73
When loading items in subinventories their ID is extracted as a string.
But in some edge cases for some strings (see capital C) the editor loads this wrongly because the DC4 character is in the string. For those special strings it backups the original binary string buffer it loaded. But now we tried to save an object containing that buffer as a string, which failed.
We now check if the item ID is contained within such a buffer.1 parent e9d6649 commit 7561114
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
789 | 795 | | |
790 | 796 | | |
791 | 797 | | |
| |||
829 | 835 | | |
830 | 836 | | |
831 | 837 | | |
832 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
833 | 842 | | |
834 | 843 | | |
835 | 844 | | |
| |||
0 commit comments