diff options
author | smatz <smatz@openttd.org> | 2009-10-04 17:10:57 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-10-04 17:10:57 +0000 |
commit | 32cbe57178129d371752e29e857fa454a046f7c3 (patch) | |
tree | c1dd06f2f7e052ee5bbbe6e388d6546da67648a3 /src/ai/api/ai_list.cpp | |
parent | 1666f7a1a926eec76a5ae12d54debf4f13bca269 (diff) | |
download | openttd-32cbe57178129d371752e29e857fa454a046f7c3.tar.xz |
(svn r17692) -Codechange: minor coding style fixes
Diffstat (limited to 'src/ai/api/ai_list.cpp')
-rw-r--r-- | src/ai/api/ai_list.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/api/ai_list.cpp b/src/ai/api/ai_list.cpp index 29446aec4..f93e504f1 100644 --- a/src/ai/api/ai_list.cpp +++ b/src/ai/api/ai_list.cpp @@ -28,7 +28,8 @@ void AIList::RemoveItem(int32 item) AIAbstractList::RemoveItem(item); } -SQInteger AIList::_set(HSQUIRRELVM vm) { +SQInteger AIList::_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) { return sq_throwerror(vm, _SC("you can only assign integers to this list")); |