Avoir sending nil values as mouse coords

This commit is contained in:
theo@manjaro 2022-03-04 14:19:03 +01:00
parent 0c2629ada1
commit d32ef8ef0a

View File

@ -71,5 +71,5 @@ function love.mousepressed(x,y,button,istouch,presses)
if game.OS ~= "Horizon" then
x,y = push:toGame(x,y)
end
game:MouseCallback(x,y,presses)
if x~=nil and y~=nil then game:MouseCallback(x,y,presses) end
end