Mercurial > hg > openttd
changeset 18548:d19acdb25577 draft
(svn r23392) -Fix: [NoAI] assigning 'null' to an AIList element to remove it didn't work
author | yexo <yexo@openttd.org> |
---|---|
date | Thu, 01 Dec 2011 22:23:13 +0000 |
parents | f39255f3fef9 |
children | 9432709d315c |
files | src/script/api/script_list.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -745,7 +745,7 @@ 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")); }