aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Custom
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Custom')
-rw-r--r--src/server/scripts/Custom/custom_example.cpp2
-rw-r--r--src/server/scripts/Custom/test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Custom/custom_example.cpp b/src/server/scripts/Custom/custom_example.cpp
index da4e4fdd787..c0de8cc5475 100644
--- a/src/server/scripts/Custom/custom_example.cpp
+++ b/src/server/scripts/Custom/custom_example.cpp
@@ -106,7 +106,7 @@ public:
}
}
- CreatureAI* GetAI(Creature* pCreature)
+ CreatureAI* GetAI(Creature* pCreature) const
{
return new custom_exampleAI (pCreature);
}
diff --git a/src/server/scripts/Custom/test.cpp b/src/server/scripts/Custom/test.cpp
index 87ee59369b3..67ba1aec8b4 100644
--- a/src/server/scripts/Custom/test.cpp
+++ b/src/server/scripts/Custom/test.cpp
@@ -199,7 +199,7 @@ public:
return true;
}
- CreatureAI* GetAI(Creature* pCreature)
+ CreatureAI* GetAI(Creature* pCreature) const
{
npcAI* testAI = new npcAI(pCreature);