mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
Fix false positive buffer overflow report in PVS-Studio
git-svn-id: https://svn.eduke32.com/eduke32@7014 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a7a2c3d12a
commit
489ed5b803
1 changed files with 2 additions and 2 deletions
|
@ -6092,7 +6092,7 @@ void G_SaveMapState(void)
|
||||||
Bmemcpy(&save->actor[0],&actor[0],sizeof(actor_t)*MAXSPRITES);
|
Bmemcpy(&save->actor[0],&actor[0],sizeof(actor_t)*MAXSPRITES);
|
||||||
|
|
||||||
save->g_cyclerCnt = g_cyclerCnt;
|
save->g_cyclerCnt = g_cyclerCnt;
|
||||||
Bmemcpy(&save->g_cyclers[0],&g_cyclers[0],sizeof(g_cyclers));
|
Bmemcpy(save->g_cyclers, g_cyclers, sizeof(g_cyclers));
|
||||||
Bmemcpy(&save->g_playerSpawnPoints[0],&g_playerSpawnPoints[0],sizeof(g_playerSpawnPoints));
|
Bmemcpy(&save->g_playerSpawnPoints[0],&g_playerSpawnPoints[0],sizeof(g_playerSpawnPoints));
|
||||||
save->g_animWallCnt = g_animWallCnt;
|
save->g_animWallCnt = g_animWallCnt;
|
||||||
Bmemcpy(&save->SpriteDeletionQueue[0],&SpriteDeletionQueue[0],sizeof(SpriteDeletionQueue));
|
Bmemcpy(&save->SpriteDeletionQueue[0],&SpriteDeletionQueue[0],sizeof(SpriteDeletionQueue));
|
||||||
|
@ -6230,7 +6230,7 @@ void G_RestoreMapState(void)
|
||||||
Bmemcpy(&actor[0],&pSavedState->actor[0],sizeof(actor_t)*MAXSPRITES);
|
Bmemcpy(&actor[0],&pSavedState->actor[0],sizeof(actor_t)*MAXSPRITES);
|
||||||
|
|
||||||
g_cyclerCnt = pSavedState->g_cyclerCnt;
|
g_cyclerCnt = pSavedState->g_cyclerCnt;
|
||||||
Bmemcpy(&g_cyclers[0],&pSavedState->g_cyclers[0],sizeof(g_cyclers));
|
Bmemcpy(g_cyclers, pSavedState->g_cyclers, sizeof(g_cyclers));
|
||||||
Bmemcpy(&g_playerSpawnPoints[0],&pSavedState->g_playerSpawnPoints[0],sizeof(g_playerSpawnPoints));
|
Bmemcpy(&g_playerSpawnPoints[0],&pSavedState->g_playerSpawnPoints[0],sizeof(g_playerSpawnPoints));
|
||||||
g_animWallCnt = pSavedState->g_animWallCnt;
|
g_animWallCnt = pSavedState->g_animWallCnt;
|
||||||
Bmemcpy(&SpriteDeletionQueue[0],&pSavedState->SpriteDeletionQueue[0],sizeof(SpriteDeletionQueue));
|
Bmemcpy(&SpriteDeletionQueue[0],&pSavedState->SpriteDeletionQueue[0],sizeof(SpriteDeletionQueue));
|
||||||
|
|
Loading…
Reference in a new issue