From 055ff4f5ce450ceb897f9b194018f7c0fffa958a Mon Sep 17 00:00:00 2001 From: mid <> Date: Wed, 21 Jan 2026 22:20:15 +0200 Subject: [PATCH] fixes for build --- src/luaapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/luaapi.c b/src/luaapi.c index 8a50cff..ba15726 100644 --- a/src/luaapi.c +++ b/src/luaapi.c @@ -19,6 +19,7 @@ #include #include"ssort.h" #include +#include /* * This is by far the least clean or well-maintained source in the @@ -1722,7 +1723,7 @@ static int dagame_mdl(lua_State *L) { } lua_pop(L, 1); - struct k3Mdl *mdl = k3MdlCreate(vertexCount, indexCount, 0, positions, normals, uvs, NULL, NULL, NULL, indices, NULL, NULL); + struct k3Mdl *mdl = k3MdlCreate(vertexCount, indexCount, 0, positions, normals, (float*) uvs, NULL, NULL, NULL, indices, NULL, NULL); struct k3Mdl **ud = lua_newuserdata(L, sizeof(*ud)); *ud = mdl;