2
0
mirror of https://github.com/alliedmodders/amxmodx.git synced 2025-06-08 11:52:11 +03:00

Fix unreachable code warning in constraint_offset() ()

This commit is contained in:
shel 2019-12-20 14:17:08 +04:00 committed by Vincent Herbet
parent 0eba9b3708
commit d3ef881f31

@ -761,12 +761,8 @@ stock constraint_offset(low, high, seed, offset)
{ {
return low + (offset % numElements); return low + (offset % numElements);
} }
else
{
return high - (abs(offset) % numElements) + 1;
}
return 0; // Makes the compiler happy -_- return high - (abs(offset) % numElements) + 1;
} }
/** /**