mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
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.
This commit is contained in:
parent
3576f4fab7
commit
d4d561fbcd
@ -18,6 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <typeinfo>
|
||||||
#include "mg_schematic.h"
|
#include "mg_schematic.h"
|
||||||
#include "gamedef.h"
|
#include "gamedef.h"
|
||||||
#include "mapgen.h"
|
#include "mapgen.h"
|
||||||
@ -53,7 +54,7 @@ void SchematicManager::clear()
|
|||||||
DecoSchematic *dschem = dynamic_cast<DecoSchematic *>(deco);
|
DecoSchematic *dschem = dynamic_cast<DecoSchematic *>(deco);
|
||||||
if (dschem)
|
if (dschem)
|
||||||
dschem->schematic = NULL;
|
dschem->schematic = NULL;
|
||||||
} catch(std::bad_cast) {
|
} catch (std::bad_cast) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user