Handmade Hero»Forums»Code
Marius Adaškevičius
22 posts
Day 279: Potential bugs in BeginLowEntity and PackEntityIntoChuck
I know that rewritten entity system code has not been properly debugged yet but I'll throw it out here (sadly, cannot catch streams live due to time zone differences) in case it helps saving some time. I think there is a bug in BeginLowEntity where StorageIndex is set before entity is cleared (handmade_world_mode.cpp:18 in that day's source code).

While we're at it, I think PackSize in PackEntityIntoChuck might also be incorrect (handmade_world.cpp:222). It should probably be sizeof(*Source) since Source is a pointer.
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 279: Potential bugs in BeginLowEntity and PackEntityIntoChuck
Thanks! Yes, we haven't really had a chance to go through all this stuff yet, so there's probably a lot of bugs in there. But they should get sorted out on Monday.

- Casey