Преглед изворни кода

Fixed bugreport:6428 Fixed behavior issues with script commands replacestr and countstr. Special Thanks to QQfoolsorellina for the extra information

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16764 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind пре 12 година
родитељ
комит
2386f0136b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/map/script.c

+ 2 - 2
src/map/script.c

@@ -13970,7 +13970,7 @@ BUILDIN_FUNC(replacestr)
 	}
 
 	if(script_hasdata(st, 5)) {
-		if(script_isint(st,5))
+		if( !script_isstring(st,5) )
 			usecase = script_getnum(st, 5) != 0;
 		else {
 			ShowError("script:replacestr: Invalid usecase value. Expected int got string\n");
@@ -14051,7 +14051,7 @@ BUILDIN_FUNC(countstr)
 	}
 
 	if(script_hasdata(st, 4)) {
-		if(script_isint(st,4))
+		if( !script_isstring(st,4) )
 			usecase = script_getnum(st, 4) != 0;
 		else {
 			ShowError("script:countstr: Invalid usecase value. Expected int got string\n");