summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-18 02:51:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-18 02:51:48 +0300
commitaf90f5ef81c95cdec378377c3100a4417e0a1708 (patch)
treea700421e464e790216580e550decf42956ad5de6 /src/gui
parentf6eb325bae9ae993c59bd0b282aef8707c7409f7 (diff)
downloadmanaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.gz
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.bz2
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.tar.xz
manaverse-af90f5ef81c95cdec378377c3100a4417e0a1708.zip
Fix some missing initialisations and memory leakss.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/palette.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/palette.h b/src/gui/palette.h
index 4a48bd32d..f89b31fca 100644
--- a/src/gui/palette.h
+++ b/src/gui/palette.h
@@ -155,6 +155,16 @@ class Palette
struct ColorElem
{
+ ColorElem()
+ {
+ type = 0;
+ text = "";
+ ch = 0;
+ gradientIndex = 0;
+ delay = 0;
+ committedDelay = 0;
+ }
+
int type;
gcn::Color color;
gcn::Color testColor;