Fix memory leak when iterating path

This commit is contained in:
2023-11-23 19:35:59 +01:00
parent a17450dd81
commit 6e977b7433
6 changed files with 17 additions and 2 deletions

View File

@@ -191,7 +191,7 @@ void update(float dt, void *userData) {
snprintf(titleBuf, sizeof(titleBuf), "FPS: %d | %.2f ms", GetFPS(), GetFrameTime() * 1000);
SetWindowTitle(titleBuf);
updatePlayerInput(NULL);
updatePlayerInput(NULL);
}
void render(float dt, void *userData) {
@@ -224,6 +224,7 @@ void imguiRender(float dt, void *userData) {
igSetNextWindowSize((ImVec2){300, 400}, ImGuiCond_FirstUseEver);
igBegin("Debug Menu", NULL, 0);
igText("Num paths from pool available: %llu", bzObjectPoolCalcNumFree(game->pools.pathData));
const char *inputState = "NONE";
switch (input->state) {
case INPUT_NONE: