Skip to content

Commit

Permalink
Merge pull request #275 from Deledrius/unused_buflen
Browse files Browse the repository at this point in the history
Remove orphaned variable.
  • Loading branch information
zrax committed Oct 1, 2023
2 parents ed9c2d4 + e7133ac commit d988343
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/auth/pnAuthClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ bool pnAuthClient::Dispatch::dispatch(pnSocket* sock)
size_t scoreCount = msgbuf[2].fUint;
pnNetGameScore* scores = new pnNetGameScore[scoreCount];
const uint8_t* buf = msgbuf[4].fData;
size_t bufLen = msgbuf[3].fUint;
for (size_t i=0; i<scoreCount; i++) {
scores[i].fScoreId = NCReadBuffer<uint32_t>(buf);
scores[i].fOwnerId = NCReadBuffer<uint32_t>(buf);
Expand Down Expand Up @@ -321,7 +320,6 @@ bool pnAuthClient::Dispatch::dispatch(pnSocket* sock)
size_t scoreCount = msgbuf[2].fUint;
pnNetGameScore* scores = new pnNetGameScore[scoreCount];
const uint8_t* buf = msgbuf[4].fData;
size_t bufLen = msgbuf[3].fUint;
for (size_t i=0; i<scoreCount; i++) {
scores[i].fScoreId = NCReadBuffer<uint32_t>(buf);
scores[i].fOwnerId = NCReadBuffer<uint32_t>(buf);
Expand Down

0 comments on commit d988343

Please sign in to comment.