mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 19:10:52 +00:00
Changed: Properly initialize all members of SLetterInfo and SLetterKey to avoid crashes when accessing to them
This commit is contained in:
parent
fcd8ba8b4f
commit
26dd86f5a6
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,10 @@ public:
|
|||
sint32 Top; // Distance between origin and top of the texture
|
||||
sint32 Left; // Distance between origin and left of the texture
|
||||
sint32 AdvX; // Advance to the next caracter
|
||||
|
||||
SLetterInfo():Char(0), FontGenerator(NULL), Size(0), Embolden(false), Oblique(false), Next(NULL), Prev(NULL), Cat(0), CharWidth(0), CharHeight(0), GlyphIndex(0), Top(0), Left(0), AdvX(0)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
struct SLetterKey
|
||||
|
@ -74,6 +78,10 @@ public:
|
|||
uint32 getVal();
|
||||
//bool operator < (const SLetterKey&k) const;
|
||||
//bool operator == (const SLetterKey&k) const;
|
||||
|
||||
SLetterKey():Char(0), FontGenerator(NULL), Size(0), Embolden(false), Oblique(false)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue