corr priceget params

This commit is contained in:
dimxy
2019-04-18 21:44:46 +05:00
parent a80dd2763e
commit f6a0ede386

View File

@@ -475,7 +475,7 @@ int64_t prices_syntheticprice(std::vector<uint16_t> vec, int32_t height, int32_t
{
case 0: // indices
pricestack[depth] = 0;
if (komodo_priceget(pricedata, height, 1, value) == 0)
if (komodo_priceget(pricedata, value, height, 1) == 0)
{
// push price to the prices stack
if (!minmax)