diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-02-05 07:18:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-02-11 03:22:45 +0300 |
commit | 3514f4405c2a822be2350fed27fe2d15cad7152c (patch) | |
tree | 03bea033e3579d5245e773b82e903c6345b1b4fa /src/map/npc.c | |
parent | 8c04536cf64dd3a7c233d9631eceb23f7207ad9c (diff) | |
download | hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.gz hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.bz2 hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.tar.xz hercules-3514f4405c2a822be2350fed27fe2d15cad7152c.zip |
Change type for class variables from short to int
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 7e1dab1b2..61341744d 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2961,7 +2961,7 @@ static bool npc_viewisid(const char *viewid) * @param class_ The NPC view class. * @return A pointer to the created NPC data (ownership passed to the caller). */ -static struct npc_data *npc_create_npc(enum npc_subtype subtype, int m, int x, int y, uint8 dir, int16 class_) +static struct npc_data *npc_create_npc(enum npc_subtype subtype, int m, int x, int y, uint8 dir, int class_) { struct npc_data *nd; @@ -3918,7 +3918,7 @@ static void npc_setdisplayname(struct npc_data *nd, const char *newname) /// /// @param nd Target npc /// @param class_ New display class -static void npc_setclass(struct npc_data *nd, short class_) +static void npc_setclass(struct npc_data *nd, int class_) { nullpo_retv(nd); @@ -4199,7 +4199,7 @@ static const char *npc_parse_mob(const char *w1, const char *w2, const char *w3, mobspawn.num = (unsigned short)num; mobspawn.active = 0; - mobspawn.class_ = (short) class_; + mobspawn.class_ = class_; mobspawn.x = (unsigned short)x; mobspawn.y = (unsigned short)y; mobspawn.xs = (signed short)xs; |