From d3ef881f31790a71a6070771ae66c812fd4c4a2c Mon Sep 17 00:00:00 2001 From: shel Date: Fri, 20 Dec 2019 14:17:08 +0400 Subject: [PATCH] Fix unreachable code warning in constraint_offset() (#784) --- plugins/include/amxmisc.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/include/amxmisc.inc b/plugins/include/amxmisc.inc index 96fb92a8..2510afe9 100755 --- a/plugins/include/amxmisc.inc +++ b/plugins/include/amxmisc.inc @@ -761,12 +761,8 @@ stock constraint_offset(low, high, seed, offset) { return low + (offset % numElements); } - else - { - return high - (abs(offset) % numElements) + 1; - } - - return 0; // Makes the compiler happy -_- + + return high - (abs(offset) % numElements) + 1; } /**