aboutsummaryrefslogtreecommitdiff
path: root/src/magic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/magic.cc')
-rw-r--r--src/magic.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/magic.cc b/src/magic.cc
index c69507f..c02e0f0 100644
--- a/src/magic.cc
+++ b/src/magic.cc
@@ -1042,9 +1042,15 @@ void CreateField(int x, int y, int z, int FieldType, uint32 Owner, bool Peaceful
}
// NOTE(fusion): Create field, at last.
- Create(GetMapContainer(x, y, z),
- GetSpecialObject(Meaning),
- Owner);
+ try{
+ Create(GetMapContainer(x, y, z),
+ GetSpecialObject(Meaning),
+ Owner);
+ }catch(RESULT r){
+ if(r != DESTROYED){
+ throw;
+ }
+ }
}
void CreateField(TCreature *Actor, Object Target, int ManaPoints, int SoulPoints, int FieldType){