Quantcast

In Player:HasProperRepLevel() - fixed logic to return the correct values for reputations which aren't stored.

James D. Callahan III [04-12-10 - 08:00]
In Player:HasProperRepLevel() - fixed logic to return the correct values for reputations which aren't stored.
Filename
Player.lua
diff --git a/Player.lua b/Player.lua
index 84121de..b02ae6d 100644
--- a/Player.lua
+++ b/Player.lua
@@ -107,7 +107,7 @@ function Player:HasProperRepLevel(rep_data)
 			end
 			local rep_name = private.reputation_list[rep_id].name

-			if player_rep[rep_name] and player_rep[rep_name] < rep_level then
+			if not player_rep[rep_name] or player_rep[rep_name] < rep_level then
 				has_faction = false
 			else
 				has_faction = true