Skip to content

Fix SIGSEGV related to GL renderer

wehrlia requested to merge wehrlia/RingRacers:sigsegv-fix into master

Every once in a while, especially at the start of online races, alphalevel will be set to a value bigger than 12, which would be caught by the else statement, leading to segfault at the next line. This commit fixes that by being more specific about what range alphalevel must be in before doing any operations with it.

Merge request reports

Loading