From c39f4bc18278440f2b5160be5f002fa8b219bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 24 Apr 2013 17:49:18 +0200 Subject: [PATCH] Fix build bug in automaterial. --- plugins/automaterial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/automaterial.cpp b/plugins/automaterial.cpp index 3c38df215..16b258a02 100644 --- a/plugins/automaterial.cpp +++ b/plugins/automaterial.cpp @@ -371,7 +371,7 @@ static bool is_valid_building_site(building_site &site, bool orthogonal_check, b return false; df::building_constructionst *cons = get_construction_on_tile(site.pos); - if (cons && cons == construction_type::Floor) + if (cons && cons->type == construction_type::Floor) { site.in_open_air = true; return true;