mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- 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:
parent
ab97f00cd1
commit
c7e25726c1
1 changed files with 1 additions and 1 deletions
|
@ -3174,7 +3174,7 @@ void ConCompiler::setmusic()
|
|||
|
||||
void loadcons()
|
||||
{
|
||||
gs = {};
|
||||
memset(&gs, 0, sizeof(gs));
|
||||
gs.respawnactortime = 768;
|
||||
gs.bouncemineblastradius = 2500;
|
||||
gs.respawnitemtime = 768;
|
||||
|
|
Loading…
Reference in a new issue