Skip to content

Commit 8684bef

Browse files
authored
Fix: Update to use DragScalar for uint32_t values (praydog#1374) (praydog#1376)
1 parent 11c7d1b commit 8684bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mods/tools/ObjectExplorer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3739,7 +3739,7 @@ void ObjectExplorer::display_data(void* data, void* real_data, std::string type_
37393739
if (real_data != nullptr) {
37403740
auto& int_val = *(uint32_t*)real_data;
37413741

3742-
ImGui::DragInt("Set Value", (int*)&int_val, 1.0f, min_uint, max_uint);
3742+
ImGui::DragScalar("Set Value", ImGuiDataType_U32, &int_val, 1.0f, &min_uint, &max_uint);
37433743
}
37443744

37453745
break;

0 commit comments

Comments
 (0)