mirror of https://github.com/zeldaret/botw.git
ksys/gdt: Silence -Wtautological-compare warning
This commit is contained in:
parent
819798cac1
commit
b15b12e7c4
|
@ -460,6 +460,10 @@ void addFlagCopyRecord(sead::ObjArray<TriggerParam::FlagCopyRecord>& records, Fl
|
|||
}
|
||||
record->bf.makeAllZero();
|
||||
}
|
||||
|
||||
constexpr bool IsString256ArrayType(FlagType::ValueType type) {
|
||||
return type == FlagType::String256Array;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
/**
|
||||
|
@ -769,7 +773,7 @@ void TriggerParam::initResetData(sead::Heap* heap) {
|
|||
mResetEntries[reset_entry_idx].type = TYPE; \
|
||||
\
|
||||
/* ??? */ \
|
||||
if constexpr (TYPE == FlagType::String256Array) \
|
||||
if constexpr (IsString256ArrayType(TYPE)) \
|
||||
mResetEntries[reset_entry_idx].index = s16(i); \
|
||||
else \
|
||||
mResetEntries[reset_entry_idx].index = i; \
|
||||
|
|
Loading…
Reference in New Issue