From: est31 Date: Fri, 17 Apr 2015 08:30:59 +0000 (+0200) Subject: Fix build since: "Remove referenced schematics from Decorations on clear" X-Git-Tag: 0.4.13~360 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4d561fbcdac0175584e4f62bc6c3bfdf83510f1;p=oweals%2Fminetest.git 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. --- 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 +#include #include "mg_schematic.h" #include "gamedef.h" #include "mapgen.h" @@ -53,7 +54,7 @@ void SchematicManager::clear() DecoSchematic *dschem = dynamic_cast(deco); if (dschem) dschem->schematic = NULL; - } catch(std::bad_cast) { + } catch (std::bad_cast) { } }