diff options
Diffstat (limited to 'engines/teenagent')
-rw-r--r-- | engines/teenagent/objects.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/teenagent/objects.h b/engines/teenagent/objects.h index 1f8a82a66e..fdf0a5ebb1 100644 --- a/engines/teenagent/objects.h +++ b/engines/teenagent/objects.h @@ -205,7 +205,15 @@ struct Walkbox { Rect rect; byte sideHint[4]; - Walkbox() : _base(NULL) { memset(this, 0, sizeof(Walkbox)); } + Walkbox() { + _base = nullptr; + type = 0; + orientation = 0; + // rect cleared by Rect constructor + for (uint i = 0; i < ARRAYSIZE(sideHint); i++) { + sideHint[i] = 0; + } + } void dump(int level = 0) const; void load(byte *src); void save() const; |