Turns out the problem was on this line:
return getShaderPathScenery(Scenarion->scenery_palette[i].name.name);
Instead of [i] I should have used [index]. Just needed to sleep on the issue. I spent about two hours trying to fix it last night. Found it in less than 5 minutes of turning on my computer. eff.
Bookmarks