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,10 +20,10 @@
ThreadedAssignment* AssignmentFactory::unpackAssignment(NLPacket& packet) {
quint8 packedType;
packet.peek(reinterpret_cast<char*>(&packedType), sizeof(packedType));
packet.peekPrimitive(&packedType);
Assignment::Type unpackedType = (Assignment::Type) packedType;
switch (unpackedType) {
case Assignment::AudioMixerType:
return new AudioMixer(packet);