mirror of
https://github.com/GameHackingBook/GameHackingCode
synced 2026-06-08 11:08:54 +00:00
Added lua scripts and fixed a typo in state machine code
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
function countLinkedListNodes(nodeAddress)
|
||||
local counter = 0
|
||||
local next = readInteger(nodeAddress)
|
||||
while (next ~= nodeAddress) do
|
||||
counter = counter + 1
|
||||
next = readInteger(next)
|
||||
end
|
||||
return counter
|
||||
end
|
||||
Reference in New Issue
Block a user