diff options
author | est31 <MTest31@outlook.com> | 2015-04-17 10:30:59 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-04-17 10:30:59 +0200 |
commit | d4d561fbcdac0175584e4f62bc6c3bfdf83510f1 (patch) | |
tree | 9a0d1e9d6f41c173951f41605a83bed64c51b26b /src | |
parent | 3576f4fab7267ff6d110fe94b6f397d6471a6980 (diff) | |
download | minetest-d4d561fbcdac0175584e4f62bc6c3bfdf83510f1.tar.gz minetest-d4d561fbcdac0175584e4f62bc6c3bfdf83510f1.tar.bz2 minetest-d4d561fbcdac0175584e4f62bc6c3bfdf83510f1.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/mg_schematic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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) { } } |