From c003b5606a95a384f2d8f08d792b0e1541003735 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Mon, 19 Mar 2018 13:37:05 +0300 Subject: [PATCH] Fixed hash change. --- qcsrc/server/resources.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/resources.qc b/qcsrc/server/resources.qc index 254db749f..c53cf7ad8 100644 --- a/qcsrc/server/resources.qc +++ b/qcsrc/server/resources.qc @@ -157,7 +157,7 @@ void GiveResourceWithLimit(entity receiver, int resource_type, float amount, resource_type = M_ARGV(1, int); amount = M_ARGV(2, float); limit = M_ARGV(3, float); - if (amount <= 0) + if (amount == 0) { return; } -- 2.39.2