diff --git a/sp/src/game/server/particle_system.cpp b/sp/src/game/server/particle_system.cpp index ca1caf4f..85ce3c10 100644 --- a/sp/src/game/server/particle_system.cpp +++ b/sp/src/game/server/particle_system.cpp @@ -265,13 +265,13 @@ void CParticleSystem::ReadControlPointEnts(void) { if (UsesCoordinates()) { float vecCoords[3]; - if (m_iszControlPointNames[i] == NULL_STRING) - m_vControlPointVecs.Set(i, GetAbsOrigin()); // use self as default position - else{ + if (UsesCoordinates()) { + float vecCoords[3]; // cast str to vector, add vector to array const char* pszVector = STRING(m_iszControlPointNames[i]); UTIL_StringToVector(vecCoords, pszVector); m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2])); + } }