diff options
author | Filippos Karapetis | 2010-06-23 17:30:18 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-23 17:30:18 +0000 |
commit | 6d1f2d1d26ed1faad4c55aa8b4e71a290f0137fa (patch) | |
tree | 0a6f8b68fdaaec2db61cf24fae45c83fa78dca38 | |
parent | 72ee20bc4d2aa4326530d1f91f2c5e5b3f6fa5db (diff) | |
download | scummvm-rg350-6d1f2d1d26ed1faad4c55aa8b4e71a290f0137fa.tar.gz scummvm-rg350-6d1f2d1d26ed1faad4c55aa8b4e71a290f0137fa.tar.bz2 scummvm-rg350-6d1f2d1d26ed1faad4c55aa8b4e71a290f0137fa.zip |
Fixed memory fragmentation warnings in Crazy Nick's games
svn-id: r50188
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index 64da511ca8..4dd7df1b52 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -105,7 +105,11 @@ enum kMemoryInfoFunc { }; reg_t kMemoryInfo(EngineState *s, int argc, reg_t *argv) { - const uint16 size = 0x7fff; // Must not be 0xffff, or some memory calculations will overflow + // The free heap size returned must not be 0xffff, or some memory + // calculations will overflow. Crazy Nick's games handle up to 32746 + // bytes (0x7fea), otherwise they throw a warning that the memory is + // fragmented + const uint16 size = 0x7fea; switch (argv[0].offset) { case K_MEMORYINFO_LARGEST_HEAP_BLOCK: |