beyond-all-reason / Beyond-All-Reason

Main game repository for Beyond All Reason.
https://www.beyondallreason.info/
Other
1.8k stars 300 forks source link

unit_target_on_the_move: fix typo #3932

Closed keelefi closed 1 week ago

keelefi commented 1 week ago

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).