X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FHud.cc;h=5687ac88bdb1c27ab2f998775662ef951255c670;hp=dde53ee37b5f486c807dfda50680841387163c21;hb=ecfc966a7b2d8e37c7f5e29227d5ba4d00e54ded;hpb=574af38ed616d1adfa5e6ce35f67cda1f707f89d diff --git a/src/Hud.cc b/src/Hud.cc index dde53ee..5687ac8 100644 --- a/src/Hud.cc +++ b/src/Hud.cc @@ -8,7 +8,7 @@ *****************************************************************************/ #include -#include +#include #include #include @@ -103,9 +103,9 @@ Hud::Hud(GameState& state) : mBar2(moof::sprite("StatusBars"), 2), mFont("Font") { - moof::video* video = moof::video::current(); - ASSERT(video && "a current video context should be set"); - resize(video->width(), video->height()); + ASSERT(moof::video::ready() && "a current video context should be set"); + moof::video& video = moof::video::current(); + resize(video.width(), video.height()); } void Hud::resize(int width, int height)