diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-21 07:41:52 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-21 07:41:52 +0000 |
commit | 8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c (patch) | |
tree | ca6cc5e4e6e70bc9796f89cf857f0b2f4590ca27 /src/map/charcommand.c | |
parent | 2da86f6d3ab9e5ed7cdd2d37337f2c5803ddb94e (diff) | |
download | hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.gz hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.bz2 hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.tar.xz hercules-8ea7fcb1f388e9049029d2c8c77b5894f95d7b3c.zip |
- Optimized some code about @size changes in chars.
- Fixed #jailtime (Bug Report 853) crash.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12117 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r-- | src/map/charcommand.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c index 5f6fb839e..893dd1425 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -2830,8 +2830,13 @@ int charcommand_jailtime(const int fd, struct map_session_data* sd, const char* return -1; } + if (!pl_sd->sc.data[SC_JAILED]) { + clif_displaymessage(fd, "This player is not in jail."); + return -1; + } + if (pl_sd->sc.data[SC_JAILED]->val1 == INT_MAX) { - clif_displaymessage(fd, "You have been jailed indefinitely."); + clif_displaymessage(fd, "This player have been jailed indefinitely."); return 0; } |