Fix gamepath missing type check

This commit is contained in:
John Doe
2025-10-25 22:15:45 +01:00
parent 9e55b14695
commit c7de1fef35
+1 -1
View File
@@ -53,7 +53,7 @@ function love.boot()
if love.restart and type(love.restart) == "table" then
local was_no_game = love.restart.noGameRestartInfo
if was_no_game and type(was_no_game) == "table" then
if was_no_game.gamepath then
if was_no_game.gamepath and type(was_no_game.gamepath) == "string" then
table.insert(arg, 1, was_no_game.gamepath)
end
end