Fix build since: "Remove referenced schematics from Decorations on clear"
authorest31 <MTest31@outlook.com>
Fri, 17 Apr 2015 08:30:59 +0000 (10:30 +0200)
committerest31 <MTest31@outlook.com>
Fri, 17 Apr 2015 08:30:59 +0000 (10:30 +0200)
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

index 6215bce945fb0484c640963af0011c5a6f9ad579..71f6f421c5b6f230ca9867834c45b09b10393663 100644 (file)
@@ -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) {
                }
        }