diff options
author | shennetsind <ind@henn.et> | 2013-12-06 22:32:27 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-06 22:32:27 -0200 |
commit | d4a58d24d6bcb23a995d62a3d9f9e7190c054b49 (patch) | |
tree | 6e58a0b50957e222ea45d9bb16d47332e2e0a76e /src/map/guild.c | |
parent | 1f1930c0e3d2bb928d9fc9a39f360815daf77e8f (diff) | |
download | hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.gz hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.bz2 hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.tar.xz hercules-d4a58d24d6bcb23a995d62a3d9f9e7190c054b49.zip |
HPM: mapindex interface
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/guild.c')
-rw-r--r-- | src/map/guild.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/guild.c b/src/map/guild.c index cca4da6cf..e73a9323b 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -124,14 +124,14 @@ int guild_check_skill_require(struct guild *g,int id) bool guild_read_castledb(char* str[], int columns, int current) {// <castle id>,<map name>,<castle name>,<castle event>[,<reserved/unused switch flag>] struct guild_castle *gc; - int mapindex = mapindex_name2id(str[1]); + int index = mapindex->name2id(str[1]); - if (map->mapindex2mapid(mapindex) < 0) // Map not found or on another map-server + if (map->mapindex2mapid(index) < 0) // Map not found or on another map-server return false; CREATE(gc, struct guild_castle, 1); gc->castle_id = atoi(str[0]); - gc->mapindex = mapindex; + gc->mapindex = index; safestrncpy(gc->castle_name, str[2], sizeof(gc->castle_name)); safestrncpy(gc->castle_event, str[3], sizeof(gc->castle_event)); @@ -189,7 +189,7 @@ struct guild_castle* guild_mapindex2gc(short mapindex) /// lookup: map name -> castle* struct guild_castle* guild_mapname2gc(const char* mapname) { - return guild->mapindex2gc(mapindex_name2id(mapname)); + return guild->mapindex2gc(mapindex->name2id(mapname)); } struct map_session_data* guild_getavailablesd(struct guild* g) |