Skip to content

Commit

Permalink
unit_target_on_the_move: fix typo (#3932)
Browse files Browse the repository at this point in the history
When spectating a game, BAR spams console log with messages like this:

    [t=00:53:10.098460][f=0012882] Error: [LuaRules::RunCallInTraceback]
    error=2 (LUA_ERRRUN) callin=DrawWorld trace=[Internal Lua error: Call
    failure] [string "LuaRules/Gadgets/unit_target_on_the_move.lua"]:822:
    attempt to call global 'drawDecoratons' (a nil value)

Fix by fixing the typo on affected line (822).
  • Loading branch information
keelefi authored Nov 13, 2024
1 parent 7961f01 commit 7f00a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luarules/gadgets/unit_target_on_the_move.lua
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ else -- UNSYNCED

function gadget:DrawWorld()
if fullview then
drawDecoratons()
drawDecorations()
else
CallAsTeam(myAllyTeam, drawDecorations)
end
Expand Down

0 comments on commit 7f00a0d

Please sign in to comment.