mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 18:58:09 +00:00
Merge pull request #248 from joecklau/patch-1
Fix: error-checking condition was inverted.
This commit is contained in:
+2
-2
@@ -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);
|
||||||
@@ -8313,4 +8313,4 @@ void ExecuteRequest_SymbolInfoTick(JSONObject *jo, string &response)
|
|||||||
joTick.put("Volume", new JSONNumber(tick.volume));
|
joTick.put("Volume", new JSONNumber(tick.volume));
|
||||||
|
|
||||||
response = CreateSuccessResponse("Tick", joTick);
|
response = CreateSuccessResponse("Tick", joTick);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user