From c2600bac8e6ceee8ec4a9fc99a1b9a9ac7211673 Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 2 Jun 2017 21:03:29 +0800 Subject: [PATCH] [General] Allow single bit booleans in packets --- components/openmw-mp/Packets/BasePacket.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/components/openmw-mp/Packets/BasePacket.hpp b/components/openmw-mp/Packets/BasePacket.hpp index 7bcdedb8c..e298d27b7 100644 --- a/components/openmw-mp/Packets/BasePacket.hpp +++ b/components/openmw-mp/Packets/BasePacket.hpp @@ -70,17 +70,10 @@ namespace mwmp void RW(bool &data, bool write) { - char _data; if (write) - { - _data = data; - bs->Write(_data); - } + bs->Write(data); else - { - bs->Read(_data); - data = _data; - } + bs->Read(data); } void RW(std::string &str, bool write, bool compress = 0)