summaryrefslogtreecommitdiff
path: root/plugins/ruby
diff options
context:
space:
mode:
authorjj2012-09-14 21:39:31 +0200
committerjj2012-09-18 10:17:32 +0200
commiteacca723e00423581be7f5aebb0c359eda8c0c41 (patch)
tree5dd961c75b3837220f9dd71a6f1d86fae69782a0 /plugins/ruby
parentbb9be9707074de025c02d424b2c1a34fa4b4938d (diff)
downloaddfhack-eacca723e00423581be7f5aebb0c359eda8c0c41.tar.gz
dfhack-eacca723e00423581be7f5aebb0c359eda8c0c41.tar.bz2
dfhack-eacca723e00423581be7f5aebb0c359eda8c0c41.tar.xz
ruby: fix building subtype/customtype init value
Diffstat (limited to 'plugins/ruby')
-rw-r--r--plugins/ruby/building.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ruby/building.rb b/plugins/ruby/building.rb
index e6760567..10c8fcd9 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