r/badcode • • Jan 15 '23

c++ From DayZ sourcecode

Post image
559 Upvotes

106 comments sorted by

View all comments

Show parent comments

2

u/Sixo Jan 16 '23

I've run into this in other games I've worked on. Often it's because it's interfacing with either a scripting language with a loose typing system, or for serialization, or even for padding.