Changeset - r18538:4f2ae4af95a1
[Not reviewed]
master
0 1 0
yexo - 13 years ago 2011-12-01 22:23:13
yexo@openttd.org
(svn r23392) -Fix: [NoAI] assigning 'null' to an AIList element to remove it didn't work
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_list.cpp
Show inline comments
 
@@ -745,7 +745,7 @@ SQInteger ScriptList::_get(HSQUIRRELVM v
 
SQInteger ScriptList::_set(HSQUIRRELVM vm)
 
{
 
	if (sq_gettype(vm, 2) != OT_INTEGER) return SQ_ERROR;
 
	if (sq_gettype(vm, 3) != OT_INTEGER || sq_gettype(vm, 3) == OT_NULL) {
 
	if (sq_gettype(vm, 3) != OT_INTEGER && sq_gettype(vm, 3) != OT_NULL) {
 
		return sq_throwerror(vm, _SC("you can only assign integers to this list"));
 
	}
 

	
0 comments (0 inline, 0 general)