aboutsummaryrefslogtreecommitdiff
path: root/actor.h
diff options
context:
space:
mode:
Diffstat (limited to 'actor.h')
-rw-r--r--actor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/actor.h b/actor.h
index df8b72ef31..752110f191 100644
--- a/actor.h
+++ b/actor.h
@@ -24,6 +24,7 @@
#ifndef ACTOR_H
#define ACTOR_H
+#include <string.h>
#include "scummsys.h"
class Scumm;
@@ -93,8 +94,8 @@ protected:
public:
- // Constructor
- //Actor(Scumm *scumm) : _scumm(scumm) {}
+ // Constructor, sets all data to 0
+ Actor() { memset(this, 0, sizeof(Actor)); }
void initActorClass(Scumm *scumm) {_scumm = scumm;}
//protected:
void hideActor();