mirror of
https://github.com/GameHackingBook/GameHackingCode
synced 2026-06-08 11:08:54 +00:00
9 lines
235 B
Lua
9 lines
235 B
Lua
function countLinkedListNodes(nodeAddress)
|
|
local counter = 0
|
|
local next = readInteger(nodeAddress)
|
|
while (next ~= nodeAddress) do
|
|
counter = counter + 1
|
|
next = readInteger(next)
|
|
end
|
|
return counter
|
|
end |