fixed throw

makeRuntimeRejectMsg now references correct function causing the throw:
This commit is contained in:
redd 2018-05-13 01:50:13 +01:00 committed by GitHub
parent 1df56cd76d
commit e71b44283b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1432,7 +1432,7 @@ function NetscriptFunctions(workerScript) {
}
var stock = SymbolToStockMap[symbol];
if (stock == null) {
throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPrice()");
throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPosition()");
}
return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx];
},