Final set of bug fixes before release

This commit is contained in:
GearsProgress
2026-10-02 12:20:03 -04:00
parent 7d991a0564
commit f1cf11f2cf
10 changed files with 36 additions and 23 deletions

View File

@@ -621,7 +621,7 @@ void LinkConnection::handleStateLogic()
case GET_CHECKSUM:
if (inData != 0xFD)
{
dataOutBuffer[dataOutBufferCurrIndex % 16] = inData;
dataOutBuffer[dataOutBufferCurrIndex % DATA_OUT_BUFFER_SIZE] = inData;
dataOutBufferCurrIndex++;
nextOutData = 0x01;
}
@@ -1250,7 +1250,7 @@ void LinkConnection::resetLinkPackets()
// And set the incoming packet to nullptr since we don't know what that is yet.
currIncomingPacket = nullptr;
for (int i = 0; i < 16; i++)
for (int i = 0; i < DATA_OUT_BUFFER_SIZE; i++)
{
dataOutBuffer[i] = 0;
}