diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-17 00:06:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 14:49:04 +0300 |
commit | 79ab58428bfde461fb4fa92418624982f181d036 (patch) | |
tree | eb7f99c839dd74b9769bc47ef9759b8665f81853 /src/map/chrif.c | |
parent | a929202e304d2cd3d5873272ea5ecb6a0371e314 (diff) | |
download | hercules-79ab58428bfde461fb4fa92418624982f181d036.tar.gz hercules-79ab58428bfde461fb4fa92418624982f181d036.tar.bz2 hercules-79ab58428bfde461fb4fa92418624982f181d036.tar.xz hercules-79ab58428bfde461fb4fa92418624982f181d036.zip |
Reduce memory usage in HPM in skill.c
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 41485d222..5bd1e436f 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1321,8 +1321,8 @@ void chrif_skillid2idx(int fd) { WFIFOHEAD(fd,4 + (MAX_SKILL * 4)); WFIFOW(fd,0) = 0x2b0b; for(i = 0; i < MAX_SKILL; i++) { - if( skill->db[i].nameid ) { - WFIFOW(fd, 4 + (count*4)) = skill->db[i].nameid; + if( skill->dbs->db[i].nameid ) { + WFIFOW(fd, 4 + (count*4)) = skill->dbs->db[i].nameid; WFIFOW(fd, 6 + (count*4)) = i; count++; } |