mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +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 {
|
||||
if currentRunContext == nil {
|
||||
return false
|
||||
}
|
||||
return currentRunContext.isRunning()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user