diff --git a/dCommon/NiPoint3.cpp b/dCommon/NiPoint3.cpp index f743dcf91..3394deb7d 100644 --- a/dCommon/NiPoint3.cpp +++ b/dCommon/NiPoint3.cpp @@ -114,13 +114,13 @@ bool NiPoint3::operator!=(const NiPoint3& point) const { //! Operator for subscripting float& NiPoint3::operator[](int i) { float* base = &x; - return const_cast(base[i]); + return base[i]; } //! Operator for subscripting const float& NiPoint3::operator[](int i) const { const float* base = &x; - return const_cast(base[i]); + return base[i]; } //! Operator for addition of vectors diff --git a/dGame/dGameMessages/GameMessages.cpp b/dGame/dGameMessages/GameMessages.cpp index 368237f38..e6c1290be 100644 --- a/dGame/dGameMessages/GameMessages.cpp +++ b/dGame/dGameMessages/GameMessages.cpp @@ -1950,7 +1950,7 @@ void GameMessages::SendBBBSaveResponse(const LWOOBJID& objectId, const LWOOBJID& bitStream.Write(buffer[i]); SEND_PACKET; - PacketUtils::SavePacket("eGameMessageType::BBB_SAVE_RESPONSE.bin", reinterpret_cast(bitStream.GetData()), bitStream.GetNumberOfBytesUsed()); + //PacketUtils::SavePacket("eGameMessageType::BBB_SAVE_RESPONSE.bin", reinterpret_cast(bitStream.GetData()), bitStream.GetNumberOfBytesUsed()); } // Property