Browse Source

Merge pull request #1605 from diasurgical/sizeof-TMegaPkt

Use sizeof(TMegaPkt)
pull/256/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
72bdad4ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/msg.cpp

2
Source/msg.cpp

@ -53,7 +53,7 @@ TMegaPkt *msg_get_next_packet()
{
TMegaPkt *result;
sgpCurrPkt = (TMegaPkt *)DiabloAllocPtr(32008);
sgpCurrPkt = (TMegaPkt *)DiabloAllocPtr(sizeof(TMegaPkt));
sgpCurrPkt->pNext = NULL;
sgpCurrPkt->dwSpaceLeft = 32000;

Loading…
Cancel
Save