equal
deleted
inserted
replaced
289 begin |
289 begin |
290 if lua_isnoneornil(L, i) then i:= -1 |
290 if lua_isnoneornil(L, i) then i:= -1 |
291 else i:= lua_tointeger(L, i); |
291 else i:= lua_tointeger(L, i); |
292 if (i < ord(Low(THogEffect))) or (i > ord(High(THogEffect))) then |
292 if (i < ord(Low(THogEffect))) or (i > ord(High(THogEffect))) then |
293 begin |
293 begin |
294 LuaCallError('Invalid gear type!', call, paramsyntax); |
294 LuaCallError('Invalid effect type!', call, paramsyntax); |
295 LuaToHogEffectOrd:= -1; |
295 LuaToHogEffectOrd:= -1; |
296 end |
296 end |
297 else |
297 else |
298 LuaToHogEffectOrd:= i; |
298 LuaToHogEffectOrd:= i; |
299 end; |
299 end; |