From eacca723e00423581be7f5aebb0c359eda8c0c41 Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 14 Sep 2012 21:39:31 +0200 Subject: [PATCH] ruby: fix building subtype/customtype init value --- plugins/ruby/building.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb index e67605673..10c8fcd96 100644 --- a/plugins/ruby/building.rb +++ b/plugins/ruby/building.rb @@ -48,8 +48,8 @@ module DFHack bld.race = ui.race_id subtype = WorkshopType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Workshop subtype = FurnaceType.int(subtype) if subtype.kind_of?(::Symbol) and type == :Furnace - bld.setSubtype(subtype) if subtype != -1 - bld.setCustomType(custom) if custom != -1 + bld.setSubtype(subtype) + bld.setCustomType(custom) case type when :Furnace; bld.melt_remainder[world.raws.inorganics.length] = 0 when :Coffin; bld.initBurialFlags