Fixed crashing metaserver at first start

This commit is contained in:
Pali Rohár 2011-05-28 13:26:27 +02:00
parent f2e8a3b060
commit ab05394bc0

View file

@ -112,6 +112,7 @@ static sqlite3 *DB;
static int DBMaxIDCallback(void *password, int argc, char **argv, char **colname)
{
Assert(argc == 1);
if (argv[0])
GameID = atoi(argv[0]);
return 0;
}