- check for null gCTable, which I am getting every time I run from the
command line. This is better than a bus error IMHO.
This commit is contained in:
parent
c9e377c4d9
commit
e25de5fce0
@ -343,6 +343,7 @@ void bx_gui_c::specific_init(bx_gui_c *th, int argc, char **argv, unsigned tilew
|
||||
CreateKeyMap();
|
||||
|
||||
gCTable = GetCTable(128);
|
||||
BX_ASSERT (gCTable != NULL);
|
||||
(*gCTable)->ctSeed = GetCTSeed();
|
||||
SetRect(&srcTextRect, 0, 0, FONT_WIDTH, FONT_HEIGHT);
|
||||
SetRect(&srcTileRect, 0, 0, tilewidth, tileheight);
|
||||
|
Loading…
x
Reference in New Issue
Block a user