From debcea96d0e4860f99ee54481584c6b707441bdb Mon Sep 17 00:00:00 2001 From: freenity Date: Fri, 18 Jul 2008 21:24:00 +0000 Subject: [PATCH] This was SVN commit r6241. --- binaries/data/mods/official/scripts/entity_functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/official/scripts/entity_functions.js b/binaries/data/mods/official/scripts/entity_functions.js index 88ee66a42c..44d50cadee 100644 --- a/binaries/data/mods/official/scripts/entity_functions.js +++ b/binaries/data/mods/official/scripts/entity_functions.js @@ -1761,7 +1761,7 @@ function checkEntityReqs( player, template ) break default: // If the item costs more of this resource type than we have, - var cur = player.resources[resource]; + var cur = parseInt(player.resources[resource]); var req = parseInt(resources[resource]); if (req > cur) { @@ -2300,3 +2300,4 @@ function updateMessageView() getGUIObjectByName("globalMessage").caption = result; getGUIObjectByName("globalMessageUnder").caption = result; } +