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]>
JKSunny and Razish committed Apr 15, 2024
1 parent c460fa0 commit cd7a6e6
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
@@ -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;
2 changes: 1 addition & 1 deletion codemp/rd-vulkan/tr_image.cpp
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit cd7a6e6

Please sign in to comment.