fix: check nil argument in blitFullFrom method

This commit is contained in:
Qingping Hou
2012-04-18 19:30:29 +08:00
parent 8cdcca148b
commit 6e72569ce2

View File

@@ -100,5 +100,9 @@ function Screen:getCurrentScreenBB()
end
function Screen:restoreFromBB(bb)
fb.bb:blitFullFrom(bb)
if bb then
fb.bb:blitFullFrom(bb)
else
debug("Got nil bb in restoreFromSavedBB!")
end
end