From a46088387c971f1af6607af9e1a9f3b7d26f53ff Mon Sep 17 00:00:00 2001 From: Hattrick HttrckCldHKS Date: Wed, 5 Sep 2018 02:29:43 +0300 Subject: [PATCH] Update vector.inc --- plugins/include/vector.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/include/vector.inc b/plugins/include/vector.inc index 27719599..3dc83ff8 100644 --- a/plugins/include/vector.inc +++ b/plugins/include/vector.inc @@ -137,7 +137,7 @@ stock FVecIVec(const Float:FVec[3], IVec[3]) * * @return True if the vector is zero, false otherwise */ -stock bool:IsVectorZero(const any:Vector[3]) +stock bool:IsVectorZero(const {_, Float}:Vector[3]) { return Vector[0] == 0 && Vector[1] == 0 && Vector[2] == 0; } @@ -149,7 +149,7 @@ stock bool:IsVectorZero(const any:Vector[3]) * * @noreturn */ -stock SetVectorZero(any:Vector[3]) +stock SetVectorZero({_, Float}:Vector[3]) { Vector[0] = Vector[1] = Vector[2] = 0; }