evolved.id works with negative count parameter

This commit is contained in:
BlackMATov
2025-05-15 07:18:57 +07:00
parent 0f1012ee41
commit 50440984c7
2 changed files with 5 additions and 1 deletions

View File

@@ -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')

View File

@@ -3458,7 +3458,7 @@ end
function __evolved_id(count)
count = count or 1
if count == 0 then
if count <= 0 then
return
end