mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-13 06:52:33 +00:00
Fixed crash caused by changes to CyberarmEngine
This commit is contained in:
@@ -69,9 +69,9 @@ class IMICRTS
|
||||
if @game.selected_entities.size < 2 && ent = @game.selected_entities.first
|
||||
return unless ent.component(:sidebar_actions)
|
||||
|
||||
@game.sidebar_actions.clear do |stack|
|
||||
@game.sidebar_actions.clear do
|
||||
ent.component(:sidebar_actions).actions.each do |action|
|
||||
stack.button action.label, tip: action.description, width: 1.0 do
|
||||
@game.button action.label, tip: action.description, width: 1.0 do
|
||||
action.block.call if action.block
|
||||
end
|
||||
end
|
||||
@@ -109,4 +109,4 @@ class IMICRTS
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user