mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 13:10:53 +00:00
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:
parent
d2398b4b7e
commit
92328dde89
5
actor.h
5
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user