Fixed a compile warning for ADJUST_SKILL_DAMAGE
* Fixes #2231. Thanks to @technoken!
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user