summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r--Stars45/Game.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp
index 9632d6a..d0a5735 100644
--- a/Stars45/Game.cpp
+++ b/Stars45/Game.cpp
@@ -195,7 +195,7 @@ Game::SetMaxTexSize(int n)
bool
Game::DisplayModeSupported(int w, int h, int bpp)
{
- return game && game->video && game->video->IsModeSupported(w,h,bpp);
+ return video && video->IsModeSupported(w, h, bpp);
}
double
@@ -1006,10 +1006,7 @@ Game::GetInstance()
Video*
Game::GetVideo()
{
- if (game)
- return game->video;
-
- return 0;
+ return video;
}
Color