Fixed crashing metaserver at first start
This commit is contained in:
parent
f2e8a3b060
commit
ab05394bc0
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ static sqlite3 *DB;
|
|||
static int DBMaxIDCallback(void *password, int argc, char **argv, char **colname)
|
||||
{
|
||||
Assert(argc == 1);
|
||||
GameID = atoi(argv[0]);
|
||||
if (argv[0])
|
||||
GameID = atoi(argv[0]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue