mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-09 23:22:33 -04:00
Fixed Pacman global object initialization (#1891)
This commit is contained in:
parent
1800939833
commit
6193023c8f
2 changed files with 4 additions and 5 deletions
|
@ -13,8 +13,6 @@ namespace ui::external_app::pacman {
|
|||
#include "playfield.hpp"
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
Playfield _game;
|
||||
|
||||
PacmanView::PacmanView(NavigationView& nav)
|
||||
: nav_(nav) {
|
||||
add_children({&dummy});
|
||||
|
@ -26,6 +24,7 @@ void PacmanView::focus() {
|
|||
|
||||
void PacmanView::paint(Painter& painter) {
|
||||
(void)painter;
|
||||
static Playfield _game;
|
||||
|
||||
if (!initialized) {
|
||||
initialized = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue