summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-03-17 01:12:33 -0300
committershennetsind <ind@henn.et>2013-03-17 01:12:33 -0300
commit3b89a135dcde9779bd0537cd136a7c34cfadbe3f (patch)
treee963c1cf1f5e0168e7cd0b415d2e5963b229cb3d /src/map
parent5b1fee9ef54dbfc27fef5f6125a678fa88eba1be (diff)
downloadhercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.gz
hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.bz2
hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.tar.xz
hercules-3b89a135dcde9779bd0537cd136a7c34cfadbe3f.zip
Re-Introducing Console Input
It's back. It's efficient. It's awesome. http://hercules.ws/board/topic/272-re-introducing-console-input/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 033b91a0b..88111d898 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -16758,9 +16758,7 @@ int skill_blockpc_end(int tid, unsigned int tick, int id, intptr_t data) {
* @param load whether this assignment is being loaded upon player login
* @return 0 if successful, -1 otherwise
*/
-int skill_blockpc_start_(struct map_session_data *sd, uint16 skill_id, int tick, bool load)
-{
- int oskill_id = skill_id;
+int skill_blockpc_start_(struct map_session_data *sd, uint16 skill_id, int tick, bool load) {
struct skill_cd* cd = NULL;
uint16 idx = skill->get_index(skill_id);
@@ -16786,7 +16784,7 @@ int skill_blockpc_start_(struct map_session_data *sd, uint16 skill_id, int tick,
// record the skill duration in the database map
cd->duration[cd->cursor] = tick;
cd->skidx[cd->cursor] = idx;
- cd->nameid[cd->cursor] = oskill_id;
+ cd->nameid[cd->cursor] = skill_id;
cd->cursor++;
}