Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 4, 2008, 10:47:04 PM (16 years ago)
Author:
scheusso
Message:

fixed messing up with enet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/packet/Welcome.cc

    r1705 r1709  
    11#include "Welcome.h"
    22#include "Packet.h"
     3#include <assert.h>
    34
    45namespace network {
     
    1415{
    1516  flags_ = flags_ | PACKET_FLAGS_CLASSID;
     17  assert(getSize());
    1618  data_=new unsigned char[ getSize() ];
    17   if(!data_)
    18     return;
     19  assert(data_);
    1920  *(packet::ENUM::Type *)&data_[ _PACKETID ] = packet::ENUM::Welcome;
    2021  *(unsigned int *)&data_[ _CLIENTID ] = clientID;
Note: See TracChangeset for help on using the changeset viewer.