(svn r17692) -Codechange: minor coding style fixes

This commit is contained in:
smatz
2009-10-04 17:10:57 +00:00
parent cd3f93c8c6
commit 7c74afb1c3
12 changed files with 28 additions and 16 deletions

View File

@@ -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"));