Update sp/src/game/server/particle_system.cpp

Co-authored-by: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com>
This commit is contained in:
Blixibon 2022-10-22 16:06:57 -05:00 committed by GitHub
parent 00f00b508f
commit 21407c3394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,11 +264,11 @@ void CParticleSystem::ReadControlPointEnts(void)
for (int i = 0; i < kMAXCONTROLPOINTS; ++i)
{
if (UsesCoordinates()) {
float vecCoords[3];
Vector vecCoords;
// 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]));
UTIL_StringToVector(vecCoords.Base(), pszVector);
m_vControlPointVecs.Set(i, vecCoords);
}
else{
if (m_iszControlPointNames[i] == NULL_STRING)