mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Fix compilation with lua 5.2 and 5.3
Mostly to have the lua53 "library" work with both lua 5.1 and lua 5.3. Additionally fixes two other incompatibilities. --HG-- branch : minor
This commit is contained in:
@@ -102,7 +102,7 @@ static std::vector<Source*> readSourceList(lua_State *L, int n)
|
||||
if (n < 0)
|
||||
n += lua_gettop(L) + 1;
|
||||
|
||||
int items = (int) lua_objlen(L, n);
|
||||
int items = (int) luax_objlen(L, n);
|
||||
std::vector<Source*> sources(items);
|
||||
|
||||
for (int i = 0; i < items; i++)
|
||||
|
||||
Reference in New Issue
Block a user