mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-03-03 02:01:47 -05:00
use strnlen for c string empty check (#1352)
* use strcmp for c string compare * Update z_file_choose.c Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
parent
e1f95a5ad9
commit
941cf65227
@ -365,7 +365,7 @@ void DrawSeedHashSprites(FileChooseContext* this) {
|
||||
|
||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0xFF, 0xFF, 0xFF, this->fileButtonAlpha[this->buttonIndex]);
|
||||
|
||||
if (CVar_GetS32("gRandomizer", 0) != 0 && CVar_GetString("gSpoilerLog", "") != "") {
|
||||
if (CVar_GetS32("gRandomizer", 0) && strnlen(CVar_GetString("gSpoilerLog", ""), 1) != 0) {
|
||||
u16 xStart = 64;
|
||||
for (u8 i = 0; i < 5; i++) {
|
||||
SpriteLoad(this, GetSeedTexture(gSaveContext.seedIcons[i]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user