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
+2 -2
View File
@@ -85,11 +85,11 @@ public:
return num < 8 ? num : 8;
}
const LightObject *GetLightObject(u16 i) const {
const LightObject *GetLightObject(int i) const {
return &mpLightData[i].mLightObject;
}
LightObject *GetLightObject(u16 i) {
LightObject *GetLightObject(int i) {
return &mpLightData[i].mLightObject;
}
+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++;