aboutsummaryrefslogtreecommitdiff
path: root/saga/objectmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/objectmap.cpp')
-rw-r--r--saga/objectmap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/saga/objectmap.cpp b/saga/objectmap.cpp
index 7b104c6d24..fe4a7a7e49 100644
--- a/saga/objectmap.cpp
+++ b/saga/objectmap.cpp
@@ -51,7 +51,7 @@ HitZone::HitZone(MemoryReadStreamEndian *readStream, int index): _index(index) {
_clickAreas = (HitZone::ClickArea *)malloc(_clickAreasCount * sizeof(*_clickAreas));
if (_clickAreas == NULL) {
- error("HitZone::HitZone Memory allocation failed");
+ memoryError("HitZone::HitZone");
}
for (i = 0; i < _clickAreasCount; i++) {
@@ -62,7 +62,7 @@ HitZone::HitZone(MemoryReadStreamEndian *readStream, int index): _index(index) {
clickArea->points = (Point *)malloc(clickArea->pointsCount * sizeof(*(clickArea->points)));
if (clickArea->points == NULL) {
- error("HitZone::HitZone Memory allocation failed");
+ memoryError("HitZone::HitZone");
}
for (j = 0; j < clickArea->pointsCount; j++) {
@@ -169,7 +169,7 @@ void ObjectMap::load(const byte *resourcePointer, size_t resourceLength) {
_hitZoneList = (HitZone **) malloc(_hitZoneListCount * sizeof(HitZone *));
if (_hitZoneList == NULL) {
- error("ObjectMap::load Memory allocation failure");
+ memoryError("ObjectMap::load");
}
for (i = 0; i < _hitZoneListCount; i++) {