- 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:
Bryce Denney 2001-09-27 02:52:17 +00:00
parent c9e377c4d9
commit e25de5fce0

View File

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