EvolutionRTS / Evolution-RTS

Evolution RTS is a free an Open Source RTS game designed using the Spring Engine.
https://www.evolutionrts.info
150 stars 38 forks source link

Reverse state toggle widget throws an error #119

Closed ForbodingAngel closed 5 years ago

ForbodingAngel commented 5 years ago

[f=0000104] [widgets_evo.lua] Error: Error in CommandNotify(): [string "LuaUI/Widgets_Evo/cmd_state_reverse_toggle...."]:20: bad argument #1 to 'spGetCmdDescIndex' (number expected, got nil)

I think BAR uses this, so maybe just copy pasta

Ruwetuin commented 5 years ago

bar widget is identical

ForbodingAngel commented 5 years ago

Ruh Roh

Looks like it is probably just an arguments change in the engine. I'll have a look a bit later.

ForbodingAngel commented 5 years ago

Dunno what caused this error before, but it works fine now.