diff --git a/source/common/utility/vectors.h b/source/common/utility/vectors.h index f9f84421a..1dafe2d88 100644 --- a/source/common/utility/vectors.h +++ b/source/common/utility/vectors.h @@ -312,6 +312,8 @@ struct TVector3 { } + TVector3(nullptr_t) = delete; + TVector3(const TVector3 &other) = default; TVector3 (const Vector2 &xy, vec_t z) diff --git a/source/sw/src/sounds.cpp b/source/sw/src/sounds.cpp index 72c450316..1268dad30 100644 --- a/source/sw/src/sounds.cpp +++ b/source/sw/src/sounds.cpp @@ -563,7 +563,7 @@ void SWSoundEngine::CalcPosVel(int type, const void* source, const float pt[3], } - if ((chanflags & CHANF_LISTENERZ) && campos != nullptr && type != SOURCE_None) + if ((chanflags & CHANF_LISTENERZ) && type != SOURCE_None) { pos->Y = campos.Y; }