mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
fix win build crash (#425)
sizeof issue make it crash on windows. Thanks Melon :)
This commit is contained in:
parent
daec428cb3
commit
0bfe2fec67
@ -259,7 +259,8 @@ namespace SohImGui {
|
||||
}
|
||||
|
||||
void LoadRainbowColor() {
|
||||
for (uint16_t s=0; s <= sizeof(RainbowColorCvarList); s++) {
|
||||
u8 arrayLength = sizeof(RainbowColorCvarList) / sizeof(*RainbowColorCvarList);
|
||||
for (u8 s = 0; s < arrayLength; s++) {
|
||||
std::string cvarName = RainbowColorCvarList[s];
|
||||
std::string Cvar_Red = cvarName;
|
||||
Cvar_Red += "R";
|
||||
|
Loading…
Reference in New Issue
Block a user