Browse Source

Use sizeof(TMegaPkt)

pull/256/head
Anders Jenbo 7 years ago committed by GitHub
parent
commit
b7a4d32e91
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