summaryrefslogtreecommitdiff
path: root/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'memory.cpp')
-rw-r--r--memory.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/memory.cpp b/memory.cpp
index 1dd7ae6..3037eb0 100644
--- a/memory.cpp
+++ b/memory.cpp
@@ -84,11 +84,12 @@ Memory_Block_Bitmap_AllocateNew(project_state *State, memory *Memory, cache_entr
} break;
}
+ uint32 Blocks_Max = Memory->Slot[B_CachedBitmaps].Size / BitmapBlockSize;
+ Assert(Blocks_Max > LastBlock);
return LastBlock + LastEntry_BlockCount;
/*
uint32 Blocks_Needed = (NewSize / BitmapBlockSize) + 1;
- uint32 Blocks_Max = Memory->Slot[B_CachedBitmaps].Size / BitmapBlockSize;
uint32 Block_Index_Available = 0;
*/