Fixed segfault with ordered list
This commit is contained in:
parent
7d1671229b
commit
5daf1ce6c0
7 changed files with 24 additions and 2 deletions
|
|
@ -1246,7 +1246,8 @@ void Toolbar::performance_metrics() {
|
|||
std::stringstream a;
|
||||
a << "FPS: " << std::fixed << std::setprecision(0) << (1.0 / main.deltaTime);
|
||||
gui.text_label(a.str());
|
||||
gui.text_label("Item Count: " + std::to_string(main.world->drawProg.components->size()));
|
||||
if(main.world->drawProg.components)
|
||||
gui.text_label("Item Count: " + std::to_string(main.world->drawProg.components->size()));
|
||||
std::stringstream b;
|
||||
b << "Coord: " << main.world->drawData.cam.c.pos.x().display_int_str(5) << ", " << main.world->drawData.cam.c.pos.y().display_int_str(5);
|
||||
gui.text_label(b.str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue