Pārlūkot izejas kodu

debug: fix a crash in the DebugFps constructor.

undefined
Sam Hocevar pirms 11 gadiem
vecāks
revīzija
7159ef1dea
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/debug/fps.cpp

+ 2
- 2
src/debug/fps.cpp Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt