Fix member vars left uninitialized in constructors

This commit is contained in:
Ben Payne 2015-02-10 17:02:15 -05:00
parent 3fe0fe1b92
commit 0ffd7f5620
23 changed files with 68 additions and 19 deletions

View file

@ -52,7 +52,13 @@ public:
objectId = obj->getId();
ghostIndex = index;
}
else
{
objectId = 0;
ghostIndex = 0;
}
object = NULL;
validObject = false;
}
~GhostAlwaysObjectEvent()
{ delete object; }