From 90f09361323668b011ff68e6e09513b723d13f09 Mon Sep 17 00:00:00 2001 From: Peter Eliasson Date: Sun, 7 Aug 2016 21:36:06 +0200 Subject: [PATCH] Fix assert in highscore assigning bool to table --- src/highscore.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highscore.lua b/src/highscore.lua index 49f5e18..10f39d4 100644 --- a/src/highscore.lua +++ b/src/highscore.lua @@ -258,7 +258,7 @@ function highscore:AddEncounterParsesForPlayers(encounter, players) -- Theses checks _should_ never fail. Something might fail though, -- so these are here as a final safe-guard against bad data being -- inserted into the db (which could be very hard to fix later on). - encounter = assert(encounter and type(encounter) == "table"); + encounter = assert(encounter); players = assert(players); local guildName = assert(encounter.guildName); local zoneId = assert(encounter.zoneId); -- 1.7.9.5