summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-08 13:30:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-08 13:30:43 +0000
commit5d658f9d7b68c96839baf7932dc8a3cb30adef5f (patch)
treeb84a2d99b5045775b57908b25bd7dccd2056c9b5 /src/map/pc.c
parente134818e33b34c84eba8770087a330f99607c4b6 (diff)
downloadhercules-5d658f9d7b68c96839baf7932dc8a3cb30adef5f.tar.gz
hercules-5d658f9d7b68c96839baf7932dc8a3cb30adef5f.tar.bz2
hercules-5d658f9d7b68c96839baf7932dc8a3cb30adef5f.tar.xz
hercules-5d658f9d7b68c96839baf7932dc8a3cb30adef5f.zip
- Made the pc reg variables receive a const char* as the argument, since they duplicate the value anyway (and they were receiving const char* values from the setd function)
- Fixed Wand of Hermod not starting the SC_HERMOD status change (which blocks spells) - Fixed a missing break in the cast cancel code. - Fixed additional def/mdef from vit/int bonuses being lost when a status change that affects def/mdef triggers (for homunculus) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12033 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6a7033064..f16f57336 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5930,7 +5930,7 @@ char* pc_readregstr(struct map_session_data* sd, int reg)
/*==========================================
* script用文字列??の値を設定
*------------------------------------------*/
-int pc_setregstr(struct map_session_data* sd, int reg, char* str)
+int pc_setregstr(struct map_session_data* sd, int reg, const char* str)
{
int i;
@@ -6113,7 +6113,7 @@ int pc_setregistry(struct map_session_data *sd,const char *reg,int val,int type)
return 0;
}
-int pc_setregistry_str(struct map_session_data *sd,char *reg,char *val,int type)
+int pc_setregistry_str(struct map_session_data *sd,char *reg,const char *val,int type)
{
struct global_reg *sd_reg;
int i,*max, regmax;