Skip to content

Commit

Permalink
Fix infinite recursion on entity "angle" keyvalue
Browse files Browse the repository at this point in the history
TotallyMehis committed Jun 22, 2020
1 parent 5de09cf commit 76a0460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/shared/baseentity_shared.cpp
Original file line number Diff line number Diff line change
@@ -414,7 +414,7 @@ bool CBaseEntity::KeyValue( const char *szKeyName, const char *szValue )
}

// Do this so inherited classes looking for 'angles' don't have to bother with 'angle'
return KeyValue( szKeyName, szBuf );
return KeyValue( "angles", szBuf );
}

// NOTE: Have to do these separate because they set two values instead of one

0 comments on commit 76a0460

Please sign in to comment.