commands.cxx

changeset 19
66993500719f
parent 17
b4fcc69e426a
child 21
ae602e667879
equal deleted inserted replaced
18:dbcc3b784234 19:66993500719f
53 ScriptReader* r = new ScriptReader ("commands.def"); 53 ScriptReader* r = new ScriptReader ("commands.def");
54 g_CommDef = NULL; 54 g_CommDef = NULL;
55 CommandDef* curdef = g_CommDef; 55 CommandDef* curdef = g_CommDef;
56 unsigned int numCommDefs = 0; 56 unsigned int numCommDefs = 0;
57 57
58 while (r->PeekNext().compare ("") != 0) { 58 while (r->PeekNext().len()) {
59 CommandDef* comm = new CommandDef; 59 CommandDef* comm = new CommandDef;
60 comm->next = NULL; 60 comm->next = NULL;
61 61
62 // Number 62 // Number
63 r->MustNumber (); 63 r->MustNumber ();

mercurial