Changeset 2823


Ignore:
Timestamp:
Jul 30, 2013, 12:26:07 PM (7 years ago)
Author:
sam
Message:

debug: fix a crash in the DebugFps constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/debug/fps.cpp

    r2816 r2823  
    4545    for (int i = 0; i < 5; i ++)
    4646    {
    47         data->lines[i] = new Text(nullptr, "data/font/ascii.png");
     47        data->lines[i] = new Text("", "data/font/ascii.png");
    4848        data->lines[i]->SetPos(ivec3(x, y + (i ? 8 : 0) + 16 * i, 0));
    4949        Ticker::Ref(data->lines[i]);
    5050    }
    5151#else
    52     data->lines[0] = new Text(nullptr, "data/font/ascii.png");
     52    data->lines[0] = new Text("", "data/font/ascii.png");
    5353    data->lines[0]->SetPos(ivec3(x, y, 100));
    5454    Ticker::Ref(data->lines[0]);
Note: See TracChangeset for help on using the changeset viewer.