Merge pull request #248 from joecklau/patch-1

Fix: error-checking condition was inverted.
This commit is contained in:
Vyacheslav Demidyuk
2021-02-10 18:11:06 +02:00
committed by GitHub
+1 -1
View File
@@ -2945,7 +2945,7 @@ void Execute_iBandsOnArray()
} }
param_index++; param_index++;
if (getIntValue(ExpertHandle, param_index, total, _error)) if (!getIntValue(ExpertHandle, param_index, total, _error))
{ {
PrintParamError("iBandsOnArray", "total", _error); PrintParamError("iBandsOnArray", "total", _error);
sendErrorResponse(ExpertHandle, -1, _error, _response_error); sendErrorResponse(ExpertHandle, -1, _error, _response_error);