mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Fixed an uncaught exception in Mesh:getVertexMap
--HG-- branch : Mesh
This commit is contained in:
@@ -169,8 +169,9 @@ int w_Mesh_setVertexMap(lua_State *L)
|
||||
int w_Mesh_getVertexMap(lua_State *L)
|
||||
{
|
||||
Mesh *t = luax_checkmesh(L, 1);
|
||||
const uint32 *vertex_map = 0;
|
||||
|
||||
const uint32 *vertex_map = t->getVertexMap();
|
||||
EXCEPT_GUARD(vertex_map = t->getVertexMap();)
|
||||
size_t elements = t->getVertexMapCount();
|
||||
|
||||
lua_createtable(L, elements, 0);
|
||||
|
||||
Reference in New Issue
Block a user