core/menusystem: fix a crash

This commit is contained in:
Kazhnuz 2019-02-10 20:00:48 +01:00
parent 648ede5874
commit b417eb5c6a

View file

@ -64,10 +64,10 @@ end
function Menu:draw() function Menu:draw()
if self.canvas.needRedraw == true then if self.canvas.needRedraw == true then
CScreen:cease() core.screen:cease()
self:drawCanvas() self:drawCanvas()
self.canvas.needRedraw = false self.canvas.needRedraw = false
CScreen:apply() core.screen:apply()
end end
love.graphics.draw(self.canvas.texture, self.x, self.y) love.graphics.draw(self.canvas.texture, self.x, self.y)