Work around LightTextureMgr regression

This commit is contained in:
robojumper
2025-03-28 20:37:41 +01:00
parent 2d95f92cfe
commit 69ce14b38c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ bool LightTextureManager::setBinaryToTexture(const void *data) {
void LightTextureManager::correctLightObject() {
int j = 0;
for (int i = 0; i < mpLightMgr->GetNumLightData(); i++) {
const LightObject *o = mpLightMgr->GetLightObject(i);
const LightObject *o = mpLightMgr->GetLightObject((u16)i);
if (o->CheckFlag1() && o->CheckFlag0x20()) {
mpObjects[j] = o;
j++;