summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-13 00:27:40 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-13 00:27:40 +0000
commit5e59d3abbd6547ff48a2571cdc77b29ab1326c04 (patch)
treea5d44d71aeac27ed75eebca5f27ff99b7a89889b /src/map/atcommand.c
parent4cc80656aeb5af0e810a5f7c1ef28624b1328dbd (diff)
downloadhercules-5e59d3abbd6547ff48a2571cdc77b29ab1326c04.tar.gz
hercules-5e59d3abbd6547ff48a2571cdc77b29ab1326c04.tar.bz2
hercules-5e59d3abbd6547ff48a2571cdc77b29ab1326c04.tar.xz
hercules-5e59d3abbd6547ff48a2571cdc77b29ab1326c04.zip
- Fixed bugreport:6887, a variable was not initialized;
- Make @addwarp <npc name> parameter mandatory as per requests; - Changed SCB_ALL to SCB_BASE on SC_INTRAVISION case, it should be enough. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16922 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 5d032c457..5be76d36a 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -5267,8 +5267,8 @@ ACMD_FUNC(addwarp)
nullpo_retr(-1, sd);
memset(warpname, '\0', sizeof(warpname));
- if (!message || !*message || sscanf(message, "%31s %d %d %23[^\n]", mapname, &x, &y, warpname) < 3) {
- clif_displaymessage(fd, msg_txt(1156)); // Usage: @addwarp <mapname> <X> <Y> {<npc name>}
+ if (!message || !*message || sscanf(message, "%31s %d %d %23[^\n]", mapname, &x, &y, warpname) < 4) {
+ clif_displaymessage(fd, msg_txt(1156)); // Usage: @addwarp <mapname> <X> <Y> <npc name>
return -1;
}