mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
loop: Bug fix: IsRunning might crash when the game hasn't started yet
This commit is contained in:
parent
9d6b1a576d
commit
76f694b948
@ -28,6 +28,9 @@ func CurrentFPS() float64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func IsRunning() bool {
|
func IsRunning() bool {
|
||||||
|
if currentRunContext == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
return currentRunContext.isRunning()
|
return currentRunContext.isRunning()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user