Skip to content

Commit fcf0293

Browse files
committed
BUGFIX:
- /mission add did not work if autoscan was enabled and the server was running
1 parent e28f3b4 commit fcf0293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/mission/lua/commands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function dcsbot.addMission(json)
259259
path = json.path
260260
end
261261
net.missionlist_append(path)
262-
if json.index ~= nil and json.index > 0 then
262+
if json.index ~= nil and tonumber(json.index) > 0 then
263263
net.missionlist_move(#current_missions["missionList"], tonumber(json.index))
264264
end
265265
local current_missions = net.missionlist_get()

0 commit comments

Comments
 (0)