From 4a971580ea3a5cb8cf19147f53807fe3bd4185bc Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sun, 1 Sep 2024 16:09:47 -0400 Subject: [PATCH] Update mod_storage.cpp --- src/pc/mods/mod_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/mods/mod_storage.cpp b/src/pc/mods/mod_storage.cpp index b6dc8536..2a41d6f0 100644 --- a/src/pc/mods/mod_storage.cpp +++ b/src/pc/mods/mod_storage.cpp @@ -96,7 +96,7 @@ C_FIELD bool mod_storage_save_number(const char* key, f32 value) { // this assumes mod_storage_load will only ever be called by Lua static char str[MAX_KEY_VALUE_LENGTH]; if (floor(value) == value) { - snprintf(str, MAX_KEY_VALUE_LENGTH, "%d", (s64)value); + snprintf(str, MAX_KEY_VALUE_LENGTH, "%lld", (s64)value); } else { snprintf(str, MAX_KEY_VALUE_LENGTH, "%f", value); }