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