aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lab/allocroom.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/lab/allocroom.cpp b/engines/lab/allocroom.cpp
index 3a5c7b9cf0..e6dad3bc23 100644
--- a/engines/lab/allocroom.cpp
+++ b/engines/lab/allocroom.cpp
@@ -168,26 +168,21 @@ static void *getCurMem(uint16 Size) {
return Ptr;
}
-
-
-
-
/*****************************************************************************/
/* Grabs a chunk of memory from the room buffer, and manages it for a */
/* particular room. */
/*****************************************************************************/
void allocRoom(void **Ptr, uint16 size, uint16 roomNum) {
uint16 rMarker;
- bool doit = true;
if (1 & size) /* Memory is required to be even aligned */
size++;
rMarker = 0;
- while ((rMarker < MAXMARKERS) && doit) {
+ while ((rMarker < MAXMARKERS)) {
if (RoomMarkers[rMarker].RoomNum == roomNum)
- doit = false;
+ break;
else
rMarker++;
}