VideoCommon: use the Light struct in XF memory

This commit is contained in:
degasus
2014-05-30 14:54:16 +02:00
parent e642c8d0c1
commit 027baad73b
5 changed files with 22 additions and 26 deletions

View File

@ -23,7 +23,7 @@ void XFWritten(u32 transferSize, u32 baseAddress)
// fix lights so invalid values don't trash the lighting computations
if (baseAddress <= 0x067f && topAddress >= 0x0604)
{
u32* x = xfmem.lights;
u32* x = (u32*)xfmem.lights;
// go through all lights
for (int light = 0; light < 8; light++)