mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Always initialize numLightmaps when loading lightmaps
This fixes an issue where the number of lightmaps is kept from the previous map if the new map has no lightmaps
This commit is contained in:
parent
c2bac6d1ef
commit
7452bf39fb
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,8 @@ static void R_LoadLightmaps(gamelump_t* l) {
|
|||
float maxIntensity = 0;
|
||||
double sumIntensity = 0;
|
||||
|
||||
tr.numLightmaps = 0;
|
||||
|
||||
len = l->length;
|
||||
if (!len) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue