aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2008-08-29 09:44:05 +0000
committerMax Horn2008-08-29 09:44:05 +0000
commitc657f1d09a1a9c2e8bcb60e21254706d540e6d1c (patch)
treebb9d8cf67669daaa2b705fb7d61c1b5ca64149d5 /engines
parent9eaa119f3134675348e1a8886a5017a7c5c7ed17 (diff)
downloadscummvm-rg350-c657f1d09a1a9c2e8bcb60e21254706d540e6d1c.tar.gz
scummvm-rg350-c657f1d09a1a9c2e8bcb60e21254706d540e6d1c.tar.bz2
scummvm-rg350-c657f1d09a1a9c2e8bcb60e21254706d540e6d1c.zip
Made out-of-memory error in SCUMM a bit more verbose
svn-id: r34201
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/dialogs.cpp3
-rw-r--r--engines/scumm/resource.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index f9a8647d0d..7f87a9e623 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -395,8 +395,7 @@ void SaveLoadChooser::updateInfos(bool redraw) {
int hours = minutes / 60;
minutes %= 60;
- snprintf(buffer, 32, "Playtime: %.2d:%.2d",
- hours & 0xFF, minutes & 0xFF);
+ snprintf(buffer, 32, "Playtime: %.2d:%.2d", hours, minutes);
_playtime->setLabel(buffer);
} else {
_date->setLabel("No date saved");
diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp
index 6bd62c1761..c543174852 100644
--- a/engines/scumm/resource.cpp
+++ b/engines/scumm/resource.cpp
@@ -809,7 +809,7 @@ byte *ResourceManager::createResource(int type, int idx, uint32 size) {
ptr = (byte *)calloc(size + sizeof(MemBlkHeader) + SAFETY_AREA, 1);
if (ptr == NULL) {
- error("Out of memory while allocating %d", size);
+ error("createResource(%s,%d): Out of memory while allocating %d", resTypeFromId(type), idx, size);
}
_allocatedSize += size;