mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-04 05:13:55 -04:00
Added missing do keyword in the loops
This commit is contained in:
parent
7b8f7b2f0a
commit
f9da8dbe92
1 changed files with 2 additions and 2 deletions
|
@ -294,14 +294,14 @@ end
|
|||
-- Defining a function
|
||||
function mySystemClass:update(dt)
|
||||
-- Iterate over all entities in the Pool
|
||||
for _, e in ipairs(self.pool)
|
||||
for _, e in ipairs(self.pool) do
|
||||
-- Do something with the Components
|
||||
e.position.x = e.position.x + e.velocity.x * dt
|
||||
e.position.y = e.position.y + e.velocity.y * dt
|
||||
end
|
||||
|
||||
-- Iterate over all entities in the second Pool
|
||||
for _, e in ipairs(self.secondPool)
|
||||
for _, e in ipairs(self.secondPool) do
|
||||
-- Do something
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue