Skip to content

Commit

Permalink
Fix build since: "Remove referenced schematics from Decorations on cl…
Browse files Browse the repository at this point in the history
…ear"

Fixes build, which has been broken for all platforms (except BSD?) since
grandparent 406d9ba.
Thanks to @SmallJoker for pointing out a solution.
  • Loading branch information
est31 committed Apr 17, 2015
1 parent 3576f4f commit d4d561f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mg_schematic.cpp
Expand Up @@ -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"
Expand Down Expand Up @@ -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) {
}
}

Expand Down

0 comments on commit d4d561f

Please sign in to comment.