summaryrefslogtreecommitdiff
path: root/src/map/mob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.cpp')
-rw-r--r--src/map/mob.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index df739a8..06026de 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -21,10 +21,6 @@
#include "pc.hpp"
#include "skill.hpp"
-#ifndef max
-#define max( a, b ) (((a) > (b)) ? (a) : (b) )
-#endif
-
#define MIN_MOBTHINKTIME 100
#define MOB_LAZYMOVEPERC 50 // Move probability in the negligent mode MOB (rate of 1000 minute)
@@ -4606,7 +4602,8 @@ int mob_readskilldb(void)
{
char *sp[20], *p;
int mob_id;
- struct mob_skill *ms;
+ // always initialized, but clang is not smart enough yet
+ struct mob_skill *ms = nullptr;
int j = 0;
if (line[0] == '/' && line[1] == '/')