Loading a bitmap/font/sound inside a global object constructor.
Description
Loading a bitmap
/font/sound inside a global object constructor.
Almost all Allegro functions require Allegro to be initialized first,
before they can be used. Since global object constructors are called
before main() (from where allegro_init()
would be called) this
condition is violated. You need to postpone calls to Allegro functions
to after initializing Allegro.