From 21c54015a23348c79739a883feecbba725211d75 Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Tue, 16 Aug 2022 16:49:14 +0300 Subject: [PATCH] game: fixed infinite recursion by using incorrect key on value conversation. (ValveSoftware/source-sdk-2013#380) --- game/shared/baseentity_shared.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/shared/baseentity_shared.cpp b/game/shared/baseentity_shared.cpp index a702ba94..3dfa5147 100644 --- a/game/shared/baseentity_shared.cpp +++ b/game/shared/baseentity_shared.cpp @@ -408,7 +408,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