Skip to content

Commit d4d561f

Browse files
committedApr 17, 2015
Fix build since: "Remove referenced schematics from Decorations on clear"
Fixes build, which has been broken for all platforms (except BSD?) since grandparent 406d9ba. Thanks to @SmallJoker for pointing out a solution.
1 parent 3576f4f commit d4d561f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/mg_schematic.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
1818
*/
1919

2020
#include <fstream>
21+
#include <typeinfo>
2122
#include "mg_schematic.h"
2223
#include "gamedef.h"
2324
#include "mapgen.h"
@@ -53,7 +54,7 @@ void SchematicManager::clear()
5354
DecoSchematic *dschem = dynamic_cast<DecoSchematic *>(deco);
5455
if (dschem)
5556
dschem->schematic = NULL;
56-
} catch(std::bad_cast) {
57+
} catch (std::bad_cast) {
5758
}
5859
}
5960

0 commit comments

Comments
 (0)
Please sign in to comment.