Friday, July 8, 2011

NetLib C++ bug fix in Advanced 3D Game Programming with DirectX 10.0

I'm using NetLib and got a packet to transmit and receive, but there was a crash.

In QueueIn.cpp in AddPacket the line
pPacket = *d_packetsUnordered.begin();
Throws on the first packet.
Just before that line you need...

if(d_packetsUnordered.size() > 0)


No comments: