diff options
author | shennetsind <ind@henn.et> | 2013-07-08 22:40:21 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-08 22:40:21 -0300 |
commit | 629fbd735a2a09d865dda51f0d128fc90039ea5a (patch) | |
tree | 46d69c137a1b2f7e0980bf42aa34922e5e72d91e /src/map/clif.c | |
parent | a2eacedd5df4a0bea47a15fa3a7f92e36f901b9f (diff) | |
download | hercules-629fbd735a2a09d865dda51f0d128fc90039ea5a.tar.gz hercules-629fbd735a2a09d865dda51f0d128fc90039ea5a.tar.bz2 hercules-629fbd735a2a09d865dda51f0d128fc90039ea5a.tar.xz hercules-629fbd735a2a09d865dda51f0d128fc90039ea5a.zip |
For Bug #7494
Modified skill cool down storage (also interfaced the remaining 2 static ers)
http://hercules.ws/board/tracker/issue-7494-crash-crash-crash/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 4233e86e8..f17766f50 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17565,15 +17565,14 @@ void clif_skill_cooldown_list(int fd, struct skill_cd* cd) { #endif for( i = 0; i < cd->cursor; i++ ) { - if( cd->duration[i] < 1 ) continue; + if( cd->entry[i]->duration < 1 ) continue; + + WFIFOW(fd, 4 + (count*offset)) = cd->entry[i]->skill_id; + WFIFOL(fd, 6 + (count*offset)) = cd->entry[i]->duration; #if PACKETVER >= 20120604 - WFIFOW(fd, 4 + (i*10)) = cd->nameid[i]; - WFIFOL(fd, 6 + (i*10)) = cd->total[i]; - WFIFOL(fd, 10 + (i*10)) = cd->duration[i]; -#else - WFIFOW(fd, 4 + (i*6)) = cd->nameid[i]; - WFIFOL(fd, 6 + (i*6)) = cd->duration[i]; + WFIFOL(fd, 10 + (count*offset)) = cd->entry[i]->duration; #endif + count++; } |