mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
Update AssignmentFactory to use peekPrimitive
This commit is contained in:
parent
1af01c9003
commit
f7c1eaf967
1 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@
|
||||||
ThreadedAssignment* AssignmentFactory::unpackAssignment(NLPacket& packet) {
|
ThreadedAssignment* AssignmentFactory::unpackAssignment(NLPacket& packet) {
|
||||||
|
|
||||||
quint8 packedType;
|
quint8 packedType;
|
||||||
packet.peek(reinterpret_cast<char*>(&packedType), sizeof(packedType));
|
packet.peekPrimitive(&packedType);
|
||||||
|
|
||||||
Assignment::Type unpackedType = (Assignment::Type) packedType;
|
Assignment::Type unpackedType = (Assignment::Type) packedType;
|
||||||
|
|
||||||
switch (unpackedType) {
|
switch (unpackedType) {
|
||||||
case Assignment::AudioMixerType:
|
case Assignment::AudioMixerType:
|
||||||
return new AudioMixer(packet);
|
return new AudioMixer(packet);
|
||||||
|
|
Loading…
Reference in a new issue