From 233ad8bb89d6fa56bc27b46563751344771d7ca4 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 8 Mar 2011 22:52:25 +0000 Subject: [PATCH] core: fix uninitialised WorldEntity members. --- src/worldentity.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/worldentity.cpp b/src/worldentity.cpp index ffa77dcc..b1f7e8ee 100644 --- a/src/worldentity.cpp +++ b/src/worldentity.cpp @@ -26,6 +26,16 @@ namespace lol WorldEntity::WorldEntity() { + position = 0; + rotation = 0; + velocity = 0; + bbox[0] = bbox[1] = 0; + + mousepos = 0; + mousebuttons = 0; + pressed = 0; + clicked = 0; + released = 0; } WorldEntity::~WorldEntity()