loop: Bug fix: IsRunning might crash when the game hasn't started yet

This commit is contained in:
Hajime Hoshi 2016-07-09 01:44:44 +09:00
parent 9d6b1a576d
commit 76f694b948

View File

@ -28,6 +28,9 @@ func CurrentFPS() float64 {
}
func IsRunning() bool {
if currentRunContext == nil {
return false
}
return currentRunContext.isRunning()
}