Mildly delay segfault

This commit is contained in:
Mewrry the Kitty 2025-11-30 15:02:49 -06:00
parent a51ba73710
commit d9bcf32e17

View file

@ -313,9 +313,9 @@ class HexagonTerminalWindow < Gosu::Window
def update def update
hbgdb = $hex_bgs.debug_get_stats hbgdb = $hex_bgs.debug_get_stats
puts "ids: #{hbgdb['i']}" # puts "ids: #{hbgdb['i']}"
puts "ref: #{hbgdb['r']}" # puts "ref: #{hbgdb['r']}"
puts "bgs: #{hbgdb['b']}" # puts "bgs: #{hbgdb['b']}"
if @output_buffer.length > 0 if @output_buffer.length > 0
render_output render_output
@ -408,8 +408,9 @@ class HexagonTerminalWindow < Gosu::Window
hex.y -= $hex_y_offset hex.y -= $hex_y_offset
end end
end end
for hex in @hexes[0] @hexes[0].each.with_index do |hex, i|
hex.cleanup! hex.cleanup!
@hexes[0][i] = nil
end end
@hexes = @hexes[1..-1] @hexes = @hexes[1..-1]
@hexes << [] @hexes << []