mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-13 19:48:00 +07:00
evolved.id works with negative count parameter
This commit is contained in:
@@ -56,6 +56,10 @@ do
|
||||
end
|
||||
|
||||
do
|
||||
do
|
||||
local i0 = evo.id(-1)
|
||||
assert(type(i0) == 'nil')
|
||||
end
|
||||
do
|
||||
local i0 = evo.id(0)
|
||||
assert(type(i0) == 'nil')
|
||||
|
||||
@@ -3458,7 +3458,7 @@ end
|
||||
function __evolved_id(count)
|
||||
count = count or 1
|
||||
|
||||
if count == 0 then
|
||||
if count <= 0 then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user