From d4d561fbcdac0175584e4f62bc6c3bfdf83510f1 Mon Sep 17 00:00:00 2001
From: est31 <MTest31@outlook.com>
Date: Fri, 17 Apr 2015 10:30:59 +0200
Subject: [PATCH] Fix build since: "Remove referenced schematics from
 Decorations on clear"

Fixes build, which has been broken for all platforms (except BSD?) since
grandparent 406d9ba87b9f6e57b86c6282bf157e3341aa195c.
Thanks to @SmallJoker for pointing out a solution.
---
 src/mg_schematic.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mg_schematic.cpp b/src/mg_schematic.cpp
index 6215bce94..71f6f421c 100644
--- a/src/mg_schematic.cpp
+++ b/src/mg_schematic.cpp
@@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 */
 
 #include <fstream>
+#include <typeinfo>
 #include "mg_schematic.h"
 #include "gamedef.h"
 #include "mapgen.h"
@@ -53,7 +54,7 @@ void SchematicManager::clear()
 			DecoSchematic *dschem = dynamic_cast<DecoSchematic *>(deco);
 			if (dschem)
 				dschem->schematic = NULL;
-		} catch(std::bad_cast) {
+		} catch (std::bad_cast) {
 		}
 	}
 
-- 
GitLab