Fixed crash caused by changes to CyberarmEngine

This commit is contained in:
2020-01-27 21:00:17 -06:00
parent df95f98b38
commit 6ae907aa66

View File

@@ -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