mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-02 09:39:48 -04:00
Fixes #56 UB in dKyr_odour_draw
This commit is contained in:
@@ -5320,6 +5320,11 @@ void dKyr_odour_draw(Mtx drawMtx, u8** tex) {
|
||||
GXColor color_reg0;
|
||||
GXColor color_reg1;
|
||||
|
||||
#if AVOID_UB
|
||||
color_reg0 = {};
|
||||
color_reg1 = {};
|
||||
#endif
|
||||
|
||||
switch (dComIfGs_getCollectSmell()) {
|
||||
case fpcNm_ITEM_SMELL_YELIA_POUCH:
|
||||
color_reg0.r = 0xFF;
|
||||
|
||||
Reference in New Issue
Block a user