Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-20 12:51:15 +0000
committerStijn Buys <ingar@osirion.org>2009-08-20 12:51:15 +0000
commit3451b7a13b7a2567c960022111c0f9617fbc7340 (patch)
tree756240ac8ab5be0a3edd52a6245c1a0c822fcfc7 /src/render/text.cc
parent8609fbe54481d812d69c4f0b4321312a7cb9c589 (diff)
initialize unitialized variables
Diffstat (limited to 'src/render/text.cc')
-rw-r--r--src/render/text.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/render/text.cc b/src/render/text.cc
index cd169b5..bfa1474 100644
--- a/src/render/text.cc
+++ b/src/render/text.cc
@@ -30,6 +30,8 @@ void Text::init()
base_color[5] = new math::Color(0, 1, 1);
base_color[6] = new math::Color(1, 0, 1);
base_color[7] = new math::Color(1, 1, 1);
+ base_color[8] = new math::Color(1, 1, 1);
+ base_color[9] = new math::Color(1, 1, 1);
for (size_t i = 0; i < 26; i++) {
core_color[i] = new math::Color(.75, .75, .75);
@@ -51,7 +53,7 @@ void Text::init()
void Text::shutdown()
{
- for (size_t i = 0; i < 7; i++) {
+ for (size_t i = 0; i < 10; i++) {
delete base_color[i];
base_color[i] = 0;
}