mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-16 15:20:11 -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() {
|
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 cvarName = RainbowColorCvarList[s];
|
||||||
std::string Cvar_Red = cvarName;
|
std::string Cvar_Red = cvarName;
|
||||||
Cvar_Red += "R";
|
Cvar_Red += "R";
|
||||||
|
Loading…
Reference in New Issue
Block a user