Skip to content

Commit 36c8379

Browse files
committed
BUGFIXES:
- Debug: Naming clash with MissionStats
1 parent aee804c commit 36c8379

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plugins/debug/lua/mission.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ end
4545

4646
dcsbot.debugEventHandler = {}
4747
function dcsbot.debugEventHandler:onEvent(event)
48-
status, err = pcall(onEvent, event)
48+
status, err = pcall(onDebugEvent, event)
4949
if not status then
5050
env.warning("DCSServerBot - Error during Debug:onEvent(): " .. err)
5151
end
5252
end
5353

54-
function onEvent(event)
54+
function onDebugEvent(event)
5555
if not event then
5656
return
5757
end

plugins/missionstats/lua/mission.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ dcsbot.mission_stats_enabled = false
2727

2828
dcsbot.eventHandler = {}
2929
function dcsbot.eventHandler:onEvent(event)
30-
status, err = pcall(onEvent, event)
30+
status, err = pcall(onMissionEvent, event)
3131
if not status then
3232
env.warning("DCSServerBot - Error during MissionStatistics:onEvent(): " .. err)
3333
end
3434
end
3535

36-
function onEvent(event)
36+
function onMissionEvent(event)
3737
if event then
3838
local msg = {
3939
command = 'onMissionEvent',

0 commit comments

Comments
 (0)