Quantcast

Fix assert in highscore assigning bool to table

Peter Eliasson [08-07-16 - 19:36]
Fix assert in highscore assigning bool to table
Filename
src/highscore.lua
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);