diff --git a/src/pc/lua/utils/smlua_gfx_utils.c b/src/pc/lua/utils/smlua_gfx_utils.c index ebc51c785..305a2086f 100644 --- a/src/pc/lua/utils/smlua_gfx_utils.c +++ b/src/pc/lua/utils/smlua_gfx_utils.c @@ -280,7 +280,7 @@ void gfx_copy(Gfx *dest, Gfx *src, u32 length) { u32 destLength = gfx_get_length(dest); if (length > destLength) { - LOG_LUA_LINE("gfx_copy: Cannot copy %u commands to a display list of length: %u", length, srcLength); + LOG_LUA_LINE("gfx_copy: Cannot copy %u commands to a display list of length: %u", length, destLength); return; }