summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-21 07:53:57 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-10 21:30:33 +0200
commit9bc5fadd7e57e71d861259c828c39cac5d0545a3 (patch)
treed5e67683c30a8a0ed86b9c74ce8aed8dac78dfd2 /src/map/pc.c
parent1f1bc12648dd2dc4a88c5e49164f1142d36c69ea (diff)
downloadhercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.gz
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.bz2
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.tar.xz
hercules-9bc5fadd7e57e71d861259c828c39cac5d0545a3.zip
Change pc_autocast_clear() function to void
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d1d224aa7..4497ef54f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5355,17 +5355,15 @@ static void pc_autocast_clear_current(struct map_session_data *sd)
/**
* Unsets a character's auto-cast related data.
*
- * @param sd The character's session data.
- * @return 0 if parameter sd is NULL, otherwise 1.
- */
-static int pc_autocast_clear(struct map_session_data *sd)
+ * @param sd The character.
+ *
+ **/
+static void pc_autocast_clear(struct map_session_data *sd)
{
- nullpo_ret(sd);
+ nullpo_retv(sd);
pc->autocast_clear_current(sd);
VECTOR_TRUNCATE(sd->auto_cast); // Truncate auto-cast vector.
-
- return 1;
}
/**