Browse Source

Fixed a compile warning for ADJUST_SKILL_DAMAGE
* Fixes #2231.
Thanks to @technoken!

aleos89 7 years ago
parent
commit
df2c3e1645
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/common/ers.c
  2. 1 1
      src/common/ers.h
  3. 1 1
      src/map/map.cpp

+ 1 - 1
src/common/ers.c

@@ -290,7 +290,7 @@ void ers_cache_size(ERS *self, unsigned int new_size) {
 }
 
 
-ERS *ers_new(uint32 size, char *name, enum ERSOptions options)
+ERS *ers_new(uint32 size, const char *name, enum ERSOptions options)
 {
 	struct ers_instance_t *instance;
 	CREATE(instance,struct ers_instance_t, 1);

+ 1 - 1
src/common/ers.h

@@ -162,7 +162,7 @@ typedef struct eri {
  * @param The requested size of the entry in bytes
  * @return Interface of the object
  */
-ERS *ers_new(uint32 size, char *name, enum ERSOptions options);
+ERS *ers_new(uint32 size, const char *name, enum ERSOptions options);
 
 /**
  * Print a report about the current state of the Entry Reusage System.

+ 1 - 1
src/map/map.cpp

@@ -4697,7 +4697,7 @@ int do_init(int argc, char *argv[])
 	iwall_db = strdb_alloc(DB_OPT_RELEASE_DATA,2*NAME_LENGTH+2+1); // [Zephyrus] Invisible Walls
 
 #ifdef ADJUST_SKILL_DAMAGE
-	map_skill_damage_ers = ers_new(sizeof(struct s_skill_damage), "map.c:map_skill_damage_ers", ERS_OPT_NONE);
+	map_skill_damage_ers = ers_new(sizeof(struct s_skill_damage), "map.cpp:map_skill_damage_ers", ERS_OPT_NONE);
 #endif
 
 	map_sql_init();