summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-09-08 17:13:52 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-09-08 17:13:52 -0400
commit9562ceb17b71fd10cf4b80e422f0d38aff3c29b9 (patch)
treefb845234c535acd42f45e8f5b27cea22f926b89c /src
parent2003fa27db17094f472cbad5b0d3ff42aea9df9c (diff)
cast handles to base type and print as hex
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 57740e0..3fe793f 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -87,13 +87,13 @@ void RecordImGuiEntityList() {
auto *entity = &entities[row];
ImGui::TableNextRow();
ImGui::TableSetColumnIndex(0);
- ImGui::Text("%lu", entity->handle);
+ ImGui::Text("%lx", static_cast<EntityHandle_T>(entity->handle));
ImGui::TableSetColumnIndex(1);
- ImGui::Text("%lu", entity->parentHandle);
+ ImGui::Text("%lx", static_cast<EntityHandle_T>(entity->parentHandle));
ImGui::TableSetColumnIndex(2);
- ImGui::Text("%lu", entity->grBindsHandle);
+ ImGui::Text("%lx", static_cast<GrBindsHandle_T>(entity->grBindsHandle));
ImGui::TableSetColumnIndex(3);
- ImGui::Text("%lu", entity->instanceHandle);
+ ImGui::Text("%lx", static_cast<InstanceHandle_T>(entity->instanceHandle));
ImGui::TableSetColumnIndex(4);
ImGui::Text("%u", entity->isMarkedForRemoval);
}