aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/entities/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lastexpress/entities/entity.h')
-rw-r--r--engines/lastexpress/entities/entity.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/lastexpress/entities/entity.h b/engines/lastexpress/entities/entity.h
index 33ca244c5e..9a2b0ffe25 100644
--- a/engines/lastexpress/entities/entity.h
+++ b/engines/lastexpress/entities/entity.h
@@ -30,6 +30,8 @@
#include "lastexpress/game/sound.h"
+#include "lastexpress/helpers.h"
+
#include "common/array.h"
#include "common/func.h"
#include "common/serializer.h"
@@ -493,11 +495,8 @@ public:
}
void clear() {
- for (int i = 0; i < 4; i++) {
- if (parameters[i])
- delete parameters[i];
- parameters[i] = NULL;
- }
+ for (int i = 0; i < 4; i++)
+ SAFE_DELETE(parameters[i]);
}
// Serializable