Skip to content

Commit

Permalink
Renderers: Fix endless loop in Z_Malloc due to imageDeleted always be…
Browse files Browse the repository at this point in the history
…ing qtrue, even if no images were deleted.

(JACoders#1209)

Co-Authored-By: razor <[email protected]>
  • Loading branch information
JKSunny and Razish committed Apr 15, 2024
1 parent a2c6097 commit 70260c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codemp/rd-vanilla/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ qboolean RE_RegisterImages_LevelLoadEnd(void)

// int iNumImages = AllocatedImages.size(); // more for curiosity, really.

qboolean imageDeleted = qtrue;
qboolean imageDeleted = qfalse;
for (AllocatedImages_t::iterator itImage = AllocatedImages.begin(); itImage != AllocatedImages.end(); /* blank */)
{
qboolean bEraseOccured = qfalse;
Expand Down
2 changes: 1 addition & 1 deletion codemp/rd-vulkan/tr_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ qboolean RE_RegisterImages_LevelLoadEnd( void )

// int iNumImages = AllocatedImages.size(); // more for curiosity, really.

qboolean imageDeleted = qtrue;
qboolean imageDeleted = qfalse;
for (AllocatedImages_t::iterator itImage = AllocatedImages.begin(); itImage != AllocatedImages.end(); /* blank */)
{
qboolean bEraseOccured = qfalse;
Expand Down

0 comments on commit 70260c2

Please sign in to comment.