We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e28f3b4 commit fcf0293Copy full SHA for fcf0293
plugins/mission/lua/commands.lua
@@ -259,7 +259,7 @@ function dcsbot.addMission(json)
259
path = json.path
260
end
261
net.missionlist_append(path)
262
- if json.index ~= nil and json.index > 0 then
+ if json.index ~= nil and tonumber(json.index) > 0 then
263
net.missionlist_move(#current_missions["missionList"], tonumber(json.index))
264
265
local current_missions = net.missionlist_get()
0 commit comments