diff options
Diffstat (limited to 'src/char_sql/inter.c')
-rw-r--r-- | src/char_sql/inter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 1097cd552..2566a159f 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -29,7 +29,7 @@ struct accreg { static struct accreg *accreg_pt;
-int party_share_level = 10;
+unsigned int party_share_level = 10;
int kick_on_disconnect = 1;
MYSQL mysql_handle;
MYSQL_RES* sql_res ;
@@ -260,8 +260,7 @@ int inter_config_read(const char *cfgName) { kick_on_disconnect=atoi(w2);
}
else if(strcmpi(w1,"party_share_level")==0){
- party_share_level=atoi(w2);
- if(party_share_level < 0) party_share_level = 0;
+ party_share_level=(unsigned int)atof(w2);
}
else if(strcmpi(w1,"log_inter")==0){
log_inter = atoi(w2);
|