zachary-foster / Minerals

Minerals_SK: A rimworld mod for the Hardcore SK project
Other
6 stars 9 forks source link

Fix out of bounds array access when getting current texture #30

Closed snezhniylis closed 3 years ago

snezhniylis commented 3 years ago

Fixes https://github.com/skyarkhangel/Hardcore-SK/issues/2351 Currently, the cached index is always 1 position ahead, causing System.IndexOutOfRangeException when trying to access the latest textureIndexes's index.

zachary-foster commented 3 years ago

Thanks for the update! I have not tested it, but I will merge it. I dont know when/if I will get back to this.