From: Ryan C. Gordon Date: Fri, 12 Aug 2005 02:45:13 +0000 (+0000) Subject: Force XYZ to initialize to please Valgrind. X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=bf03ef4581fbc6d5d51e6148f2ab01dc61a29d5b;p=lugaru.git Force XYZ to initialize to please Valgrind. --- diff --git a/Source/Globals.cpp b/Source/Globals.cpp index 05b4ff4..d44a3df 100644 --- a/Source/Globals.cpp +++ b/Source/Globals.cpp @@ -144,12 +144,12 @@ float dialogueboxcolor[max_dialogues][max_dialoguelength][3] = {0}; int dialogueboxsound[max_dialogues][max_dialoguelength] = {0}; char dialoguetext[max_dialogues][max_dialoguelength][128] = {0}; char dialoguename[max_dialogues][max_dialoguelength][64] = {0}; -XYZ dialoguecamera[max_dialogues][max_dialoguelength] = {0}; -XYZ participantlocation[max_dialogues][10] = {0}; +XYZ dialoguecamera[max_dialogues][max_dialoguelength]; //l = {0}; +XYZ participantlocation[max_dialogues][10]; // = {0}; int participantfocus[max_dialogues][max_dialoguelength] = {0}; int participantaction[max_dialogues][max_dialoguelength] = {0}; float participantrotation[max_dialogues][10] = {0}; -XYZ participantfacing[max_dialogues][max_dialoguelength][10] = {0}; +XYZ participantfacing[max_dialogues][max_dialoguelength][10]; // = {0}; float dialoguecamerarotation[max_dialogues][max_dialoguelength] = {0}; float dialoguecamerarotation2[max_dialogues][max_dialoguelength] = {0}; int indialogue = 0; @@ -196,7 +196,7 @@ float bonusnum[100] = {0}; int hostile = 0; float hostiletime = 0; -XYZ envsound[30] = {0}; +XYZ envsound[30]; // = {0}; float envsoundvol[30] = {0}; float envsoundlife[30] = {0}; int numenvsounds; diff --git a/Source/Quaternions.h b/Source/Quaternions.h index ba1eedb..ec27e6e 100644 --- a/Source/Quaternions.h +++ b/Source/Quaternions.h @@ -37,6 +37,7 @@ public: float x; float y; float z; + XYZ() : x(0.0f), y(0.0f), z(0.0f) {} inline XYZ operator+(XYZ add); inline XYZ operator-(XYZ add); inline XYZ operator*(float add);