From 7159ef1dea6f7458ea55bbb029a56c0ebc827c0f Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 30 Jul 2013 10:26:07 +0000 Subject: [PATCH] debug: fix a crash in the DebugFps constructor. --- src/debug/fps.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug/fps.cpp b/src/debug/fps.cpp index 601e600c..8b45f415 100644 --- a/src/debug/fps.cpp +++ b/src/debug/fps.cpp @@ -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