From 8cf10f0a5a7e1bb630fb8ddea848ea11f85726a4 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 3 May 2016 20:13:08 +0200 Subject: TEENAGENT: Proper initialization for Object structure. --- engines/teenagent/objects.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/teenagent/objects.h b/engines/teenagent/objects.h index 94303c9fbe..1f8a82a66e 100644 --- a/engines/teenagent/objects.h +++ b/engines/teenagent/objects.h @@ -165,7 +165,7 @@ struct Object { //19 Common::String name, description; - Object(): _base(NULL) { memset(this, 0, sizeof(Object)); } + Object(): _base(NULL) { id = 0; actorOrientation = 0; enabled = 0; } void dump(int level = 0) const; void setName(const Common::String &newName); void load(byte *addr); -- cgit v1.2.3