Put brackets around a possible noop inside an if.
This commit is contained in:
parent
e8b3a77331
commit
6740cc3b7d
|
@ -148,9 +148,9 @@ static MemSpan MemSpan_TexMem(u32 ofs, u32 len)
|
||||||
currofs += curr.len;
|
currofs += curr.len;
|
||||||
u8* ptr = ARM9Mem.textureSlotAddr[slot];
|
u8* ptr = ARM9Mem.textureSlotAddr[slot];
|
||||||
|
|
||||||
if(ptr == ARM9Mem.blank_memory)
|
if(ptr == ARM9Mem.blank_memory) {
|
||||||
PROGINFO("Tried to reference unmapped texture memory: slot %d\n",slot);
|
PROGINFO("Tried to reference unmapped texture memory: slot %d\n",slot);
|
||||||
|
}
|
||||||
curr.ptr = ptr + curr.start;
|
curr.ptr = ptr + curr.start;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -179,9 +179,9 @@ static MemSpan MemSpan_TexPalette(u32 ofs, u32 len)
|
||||||
currofs += curr.len;
|
currofs += curr.len;
|
||||||
u8* ptr = ARM9Mem.texPalSlot[slot];
|
u8* ptr = ARM9Mem.texPalSlot[slot];
|
||||||
|
|
||||||
if(ptr == ARM9Mem.blank_memory)
|
if(ptr == ARM9Mem.blank_memory) {
|
||||||
PROGINFO("Tried to reference unmapped texture palette memory: 16k slot #%d\n",slot);
|
PROGINFO("Tried to reference unmapped texture palette memory: 16k slot #%d\n",slot);
|
||||||
|
}
|
||||||
curr.ptr = ptr + curr.start;
|
curr.ptr = ptr + curr.start;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue