Unverified Commit 97d72688 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #7 from phcoder/celeste

Fix implementation of foreach
parents e5eb7383 407c5312
Pipeline #90283 passed with stage
in 2 minutes and 1 second
......@@ -24,7 +24,7 @@ end
function foreach(c, f)
if c ~= nil then
for key, value in ipairs(c) do
for value in all(c) do
......@@ -25,7 +25,7 @@ const char* lua_api_string =
"function foreach(c, f)\n"
" if c ~= nil then\n"
" for key, value in ipairs(c) do\n"
" for value in all(c) do\n"
" f(value)\n"
" end\n"
" end\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment