Handmade Hero»Forums»Code
Marius Adaškevičius
22 posts
Day 151: Potentially incorrect AssetTypeArraySize
I'm very well aware that newly written code for asset loading is currently not being run and hasn't been debugged yet, but in case it saves some time in the future just wanted to note that AssetTypeArraySize value may be set incorrectly (handmade_asset.cpp:733 in that day's source code). Its value is based on HHA file header but header is read after that in line 737.
Marius Adaškevičius
22 posts
Day 151: Potentially incorrect AssetTypeArraySize
It has been fixed in day 152 :)
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
Day 151: Potentially incorrect AssetTypeArraySize
Thanks for the heads up either way - it's always better to point out potential bugs here, even if they are fixed before I read the thread. The alternative possibility is that you don't mention them, AND I don't happen to find them, and then there's is a bug in the code that does not need to be there!

- Casey