mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 17:49:33 +00:00
Fix logging pointer overflow check
This commit is contained in:
parent
24912c13c0
commit
c7422d12a2
@ -30,7 +30,7 @@ void logData()
|
||||
logBuffer[logPointer][10] = thrustTarget;
|
||||
|
||||
logPointer++;
|
||||
if (logPointer >= 2000) {
|
||||
if (logPointer >= LOG_SIZE) {
|
||||
logPointer = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user