Razish / japp

JA++ server and client modification for Jedi Academy
GNU General Public License v2.0
44 stars 30 forks source link

level should not be memset in G_InitGame #439

Closed Razish closed 2 years ago

Razish commented 2 years ago

level.reservedEnts is non-trivial type

ensiform commented 2 years ago

Move non trivial types out of it or?? Create a member function that clears everything

Razish commented 2 years ago

Yeah, easy enough to contain level.reservedEnts in g_utils.cpp so I'll do that. It's only used for making sure flags etc always have a valid entity slot.