- use memset to clear 'gs' in loadconst.

MSVC compiled the old assignment to memsetting a local copy and then memcpying it to the destination, but this struct is far too large for that and was causing occasional stack errors when debugging.
This commit is contained in:
Christoph Oelckers 2022-12-20 12:44:34 +01:00
parent ab97f00cd1
commit c7e25726c1

View file

@ -3174,7 +3174,7 @@ void ConCompiler::setmusic()
void loadcons()
{
gs = {};
memset(&gs, 0, sizeof(gs));
gs.respawnactortime = 768;
gs.bouncemineblastradius = 2500;
gs.respawnitemtime = 768;