From b467dafd4ee50d467a60f3f010e7890d5e4c43b6 Mon Sep 17 00:00:00 2001 From: Karim Date: Fri, 12 Apr 2024 16:41:01 -0400 Subject: [PATCH] refactor: const correctness - Fix for newer pawn compiler. --- foreach.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/foreach.inc b/foreach.inc index 49bdc9e..1b578d6 100644 --- a/foreach.inc +++ b/foreach.inc @@ -1161,7 +1161,7 @@ Notes: Returns a random value from an iterator. \*----------------------------------------------------------------------------*/ -stock Iter_RandomInternal(count, array[], size) +stock Iter_RandomInternal(count, const array[], size) { if (count == 0) { @@ -1197,7 +1197,7 @@ Notes: the data. \*----------------------------------------------------------------------------*/ -stock Iter_FreeInternal(array[], size) +stock Iter_FreeInternal(const array[], size) { for (new i = 0; i != size; ++i) { @@ -1334,7 +1334,7 @@ Notes: Checks if this item is in the iterator. \*----------------------------------------------------------------------------*/ -stock Iter_ContainsInternal(array[], value, size) +stock Iter_ContainsInternal(const array[], value, size) { return 0 <= value < size && array[value] <= size; }