Explorar el Código

Fixed a typo in script engine erroring when working with char params

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10848 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage hace 18 años
padre
commit
aa3f4c7b18
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/script.c

+ 1 - 0
Changelog-Trunk.txt

@@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/07/03
+	* Fixed a typo in script engine erroring when working with char params
 	* Made Homun Resurrection only fail on cast-end (see topic:155223)
 	* Re-coded 'soundeffectall'; removed the third parameter ('coverage')
 	- adjust your scripts if you use this command [ultramage]

+ 1 - 1
src/map/script.c

@@ -2114,7 +2114,7 @@ int get_val(struct script_state* st, struct script_data* data)
 	postfix = name[strlen(name) - 1];
 
 	//##TODO use reference_tovariable(data) when it's confirmed that it works [FlavioJS]
-	if( !reference_toconstant(data) && !reference_toparam(data) && not_server_variable(prefix) )
+	if( !reference_toconstant(data) && not_server_variable(prefix) )
 	{
 		sd = script_rid2sd(st);
 		if( sd == NULL )