Push userdata?
Some checks failed
Build Dusk / run-tests (push) Successful in 1m43s
Build Dusk / build-linux (push) Failing after 1m40s
Build Dusk / build-psp (push) Failing after 2m21s
Build Dusk / build-dolphin (push) Failing after 2m42s

This commit is contained in:
2026-02-09 12:03:35 -06:00
parent aa2979ffe7
commit 87aa70c6d2
2 changed files with 2 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ void mapChunkUnload(mapchunk_t* chunk) {
errorret_t mapChunkLoad(mapchunk_t* chunk) { errorret_t mapChunkLoad(mapchunk_t* chunk) {
if(!mapIsLoaded()) errorThrow("No map loaded"); if(!mapIsLoaded()) errorThrow("No map loaded");
char_t buffer[64]; char_t buffer[160];
// TODO: Can probably move this to asset load logic? // TODO: Can probably move this to asset load logic?
chunk->meshCount = 0; chunk->meshCount = 0;

View File

@@ -18,9 +18,7 @@ void moduleTime(scriptcontext_t *ctx) {
} }
lua_pop(ctx->luaState, 1); lua_pop(ctx->luaState, 1);
dusktime_t **ud = (dusktime_t**)lua_newuserdatauv( dusktime_t **ud = (dusktime_t**)lua_newuserdata(ctx->luaState, sizeof(dusktime_t*));
ctx->luaState, sizeof(dusktime_t*), 0
);
*ud = &TIME; *ud = &TIME;
luaL_setmetatable(ctx->luaState, "time_mt"); luaL_setmetatable(ctx->luaState, "time_mt");
lua_setglobal(ctx->luaState, "TIME"); lua_setglobal(ctx->luaState, "TIME");