summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-23 12:08:44 +0000
committerIra Rice <irarice@gmail.com>2008-10-23 12:08:44 +0000
commit5b70e7729229317acfd1b8f79e8eb1b90870827b (patch)
tree1a5e5c2ef5390a2ec48324ffe351d5eb425863e8 /src/text.cpp
parent7a88c394584cb02cec8d1d7eb70ac2020e033d41 (diff)
downloadmana-5b70e7729229317acfd1b8f79e8eb1b90870827b.tar.gz
mana-5b70e7729229317acfd1b8f79e8eb1b90870827b.tar.bz2
mana-5b70e7729229317acfd1b8f79e8eb1b90870827b.tar.xz
mana-5b70e7729229317acfd1b8f79e8eb1b90870827b.zip
Removed a few compiler warnings.
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/text.cpp b/src/text.cpp
index 545c1c0e..7967b56f 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -100,3 +100,14 @@ void FlashText::draw(Graphics *graphics, int xOff, int yOff)
}
Text::draw(graphics, xOff, yOff);
}
+
+FlashText::~FlashText()
+{
+ mTime = 0;
+ textManager->removeText(this);
+ if (--mInstances == 0)
+ {
+ delete textManager;
+ textManager = 0;
+ }
+}