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