-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
重现代码如下 打出来的日志 根本不一致
jass.TimerStart(jass.CreateTimer(), 0.1, true, function ()
local map = {}
for i = 1, 100 do
local object = {
id = i,
}
map[object] = math.random(1, 10000)
end
if jass.GetLocalPlayer() == jass.Player(math.random(12)) then
for i = 1, 100 do
local object = {}
end
end
for object, num in pairs(map) do
print('table', object.id, num)
end
local map = {}
for i = 1, 100 do
local str = 'string' .. i
map[str] = math.random(1, 10000)
end
for str, num in pairs(map) do
print('string', str, num)
end
end)
从前就一直怀疑你修复的有问题 今天测了一下 发现是真的有问题 被我逮到了吧
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels