Browse Source

debug: fix a crash in the DebugFps constructor.

undefined
Sam Hocevar 11 years ago
parent
commit
7159ef1dea
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/debug/fps.cpp

+ 2
- 2
src/debug/fps.cpp View File

@@ -44,12 +44,12 @@ DebugFps::DebugFps(int x, int y)
#if 0
for (int i = 0; i < 5; i ++)
{
data->lines[i] = new Text(nullptr, "data/font/ascii.png");
data->lines[i] = new Text("", "data/font/ascii.png");
data->lines[i]->SetPos(ivec3(x, y + (i ? 8 : 0) + 16 * i, 0));
Ticker::Ref(data->lines[i]);
}
#else
data->lines[0] = new Text(nullptr, "data/font/ascii.png");
data->lines[0] = new Text("", "data/font/ascii.png");
data->lines[0]->SetPos(ivec3(x, y, 100));
Ticker::Ref(data->lines[0]);
#endif


Loading…
Cancel
Save