summaryrefslogtreecommitdiff
path: root/src/KingSystem/Event/evtOrderParam.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-02-07 11:41:13 +0100
committerLéo Lam <leo@leolam.fr>2021-02-07 16:09:02 +0100
commitf41d668cff4998259880529f4f188eb2f9c9e9c3 (patch)
tree878d863542e3fac8f6b4d95f527217989397fb5a /src/KingSystem/Event/evtOrderParam.cpp
parent6ef151ac1f17c0e33dcb4bf29d12e2500ca03db4 (diff)
ksys/evt: Add missing cast
Enum classes need to be casted before being passed to dumb C-style variadic functions like format()
Diffstat (limited to 'src/KingSystem/Event/evtOrderParam.cpp')
-rw-r--r--src/KingSystem/Event/evtOrderParam.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Event/evtOrderParam.cpp b/src/KingSystem/Event/evtOrderParam.cpp
index 999598cd..2ae33304 100644
--- a/src/KingSystem/Event/evtOrderParam.cpp
+++ b/src/KingSystem/Event/evtOrderParam.cpp
@@ -219,8 +219,8 @@ OrderParamEntry* OrderParam::getFreeEntry() {
OrderParamEntry* OrderParam::tryAlloc(OrderParamType type, u32 size, const sead::SafeString& name) {
sead::FixedSafeString<0x100> error_message;
- error_message.format("[%s] tryAlloc_(%d, %d, %s) is failed.", "ksys::evt::OrderParam", type,
- size, name.cstr());
+ error_message.format("[%s] tryAlloc_(%d, %d, %s) is failed.", "ksys::evt::OrderParam",
+ static_cast<u16>(type), size, name.cstr());
OrderParamEntry* entry = getFreeEntry(); // inlining here fixed the for loop