fixed attempt to index a number value error

This commit is contained in:
Remy Marquis 2016-09-03 19:04:20 +02:00
parent 7d031eac96
commit 3dcf3eb8a1
1 changed files with 59 additions and 59 deletions

View File

@ -131,7 +131,7 @@ function et_InitGame(levelTime, randomSeed, restart)
)
]])
cur = assert (con:execute("SELECT COUNT(*) FROM users"))
cur = assert (con:execute(string.format("SELECT COUNT(*) FROM users")))
et.G_Print("XP Save: there are " .. tonumber(cur:fetch(row, 'a')) .. " users in the database\n")