mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-28 11:50:53 +00:00
Fixed: Uninitialized variables
This commit is contained in:
parent
d58b347a99
commit
82d8e04ab2
3 changed files with 3 additions and 2 deletions
|
@ -836,7 +836,7 @@ bool CFormElm::getInternalNodeByName (CForm *form, const std::string &name, cons
|
||||||
bool inArrayIndex = false;
|
bool inArrayIndex = false;
|
||||||
|
|
||||||
// Index in the array
|
// Index in the array
|
||||||
uint arrayIndex;
|
uint arrayIndex = 0;
|
||||||
|
|
||||||
// Bool next token must be an array index
|
// Bool next token must be an array index
|
||||||
bool wantArrayIndex = false;
|
bool wantArrayIndex = false;
|
||||||
|
|
|
@ -838,6 +838,7 @@ namespace NLGUI
|
||||||
result.R = 255 * hueToRgb(m1, m2, h + 1.0f/3.0f);
|
result.R = 255 * hueToRgb(m1, m2, h + 1.0f/3.0f);
|
||||||
result.G = 255 * hueToRgb(m1, m2, h);
|
result.G = 255 * hueToRgb(m1, m2, h);
|
||||||
result.B = 255 * hueToRgb(m1, m2, h - 1.0f/3.0f);
|
result.B = 255 * hueToRgb(m1, m2, h - 1.0f/3.0f);
|
||||||
|
result.A = 255;
|
||||||
}
|
}
|
||||||
|
|
||||||
class CNameToCol
|
class CNameToCol
|
||||||
|
|
|
@ -2044,7 +2044,7 @@ int CLuaIHMRyzom::addShape(CLuaState &ls)
|
||||||
|
|
||||||
string shape = ls.toString(1);
|
string shape = ls.toString(1);
|
||||||
|
|
||||||
float x,y,z = 0.0f;
|
float x = 0.0f, y = 0.0f, z = 0.0f;
|
||||||
float scale = 1.0f;
|
float scale = 1.0f;
|
||||||
string context,url,skeleton,texture = "";
|
string context,url,skeleton,texture = "";
|
||||||
bool highlight, transparency, collision = false;
|
bool highlight, transparency, collision = false;
|
||||||
|
|
Loading…
Reference in a new issue