EverestAPI / EverestAPI/Everest

LightingRenderer.BeforeRender causes an IndexOutOfRange exception

Open
#695 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
516
Forks
106
Avg merge
4d 9h
Merged PRs (30d)
5

Description

### My mods and Everest install are up to date

Yes

### I have recreated the bug with only Everest OR a minimum number of mods enabled

Yes

### Describe the bug

See
https://discord.com/channels/403698615446536203/1149463596246519928/1173685926824783915

TL;DR: LightingRenderer.verts/indices are arrays of length 11520, so too many VertexLight/LightOcclude/EffectCutout will lead to an IndexOutOfRange exception

### Steps to reproduce

https://discord.com/channels/403698615446536203/1149463596246519928/1173687988614615060

### Expected behavior

No crash

### Operating System

Windows 10

### Everest Version

4417

### Mods required to reproduce

No

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.