Update AssignmentFactory to use peekPrimitive

This commit is contained in:
Ryan Huffman 2015-07-14 14:24:08 -07:00
parent 1af01c9003
commit f7c1eaf967

View file

@ -20,7 +20,7 @@
ThreadedAssignment* AssignmentFactory::unpackAssignment(NLPacket& packet) {
quint8 packedType;
packet.peek(reinterpret_cast<char*>(&packedType), sizeof(packedType));
packet.peekPrimitive(&packedType);
Assignment::Type unpackedType = (Assignment::Type) packedType;