fixed a few unitialized memory reads

This commit is contained in:
Anselme 2017-08-31 16:26:44 +02:00
parent 13cf4fb6f5
commit 51e3b949c4
4 changed files with 5 additions and 1192 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,10 +17,10 @@
#include "resourcemanager.h" #include "resourcemanager.h"
ButtonNode::ButtonNode(ButtonShape* shape): ButtonNode::ButtonNode(ButtonShape* shape):
m_shape(shape) m_shape(shape),
m_label(new LabelNode())
{ {
addChild(m_shape->getBackGround()); addChild(m_shape->getBackGround());
m_label = new LabelNode();
addChild(m_label); addChild(m_label);
} }

View File

@ -11,7 +11,8 @@
LabelNode::LabelNode(): LabelNode::LabelNode():
m_string(""), m_string(""),
m_color(glm::vec3(1,1,1)) m_color(glm::vec3(1,1,1)),
m_was_updated(false)
{ {
Font* font = RESOURCE_GET(Font,"shellfont"); Font* font = RESOURCE_GET(Font,"shellfont");
m_text = font->getTextNode(m_string,m_color,32); m_text = font->getTextNode(m_string,m_color,32);

View File

@ -69,7 +69,7 @@ const float JUMP_VELOCITY = 5.f;
PlayerCharacterNode::PlayerCharacterNode(bool noClip) : PlayerCharacterNode::PlayerCharacterNode(bool noClip) :
m_jumping(false), m_jumping(false),
m_noclipMode(noClip), m_noclipMode(noClip),
m_inputActions({NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION}) m_inputActions({NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION, NO_ACTION})
{ {
m_playerLight = new PointLight(glm::vec3(150, 10, 30), 10, glm::vec3(0.18f, 0.16f, 0.096f)*2.f); m_playerLight = new PointLight(glm::vec3(150, 10, 30), 10, glm::vec3(0.18f, 0.16f, 0.096f)*2.f);
m_playerLightNode = new LightNode(m_playerLight); m_playerLightNode = new LightNode(m_playerLight);