X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FHud.cc;h=5687ac88bdb1c27ab2f998775662ef951255c670;hp=20d6b4e3beee63d470a272a782b5a83b55a69807;hb=ecfc966a7b2d8e37c7f5e29227d5ba4d00e54ded;hpb=44b3014bce798789e795242d1556cb7449e6386a diff --git a/src/Hud.cc b/src/Hud.cc index 20d6b4e..5687ac8 100644 --- a/src/Hud.cc +++ b/src/Hud.cc @@ -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)