use memset to init members to 0 (yes I know we override new to use calloc, but that is a nasty hack, it won't work for stack allocated objects)

svn-id: r4355
This commit is contained in:
Max Horn 2002-05-19 12:39:52 +00:00
parent d2398b4b7e
commit 92328dde89

View File

@ -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();