From ead5668dc82a3618f463d8a09710ca7d43226bf7 Mon Sep 17 00:00:00 2001 From: samisalreadytaken <46823719+samisalreadytaken@users.noreply.github.com> Date: Sat, 7 Sep 2024 16:25:23 +0300 Subject: [PATCH] Fix GetPropVector return type --- sp/src/game/shared/mapbase/vscript_singletons.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sp/src/game/shared/mapbase/vscript_singletons.cpp b/sp/src/game/shared/mapbase/vscript_singletons.cpp index 6cdf66df..88bb41ff 100644 --- a/sp/src/game/shared/mapbase/vscript_singletons.cpp +++ b/sp/src/game/shared/mapbase/vscript_singletons.cpp @@ -1615,7 +1615,7 @@ public: #define SetProp( type, name )\ void SetProp##name( HSCRIPT hEnt, const char* szProp, type value )\ {\ - return SetProp##name##Array( hEnt, szProp, value, 0 );\ + SetProp##name##Array( hEnt, szProp, value, 0 );\ } GetProp( int, Int ); @@ -1624,8 +1624,8 @@ public: SetProp( float, Float ); GetProp( HSCRIPT, Entity ); SetProp( HSCRIPT, Entity ); - GetProp( Vector, Vector ); - SetProp( Vector, Vector ); + GetProp( const Vector&, Vector ); + SetProp( const Vector&, Vector ); GetProp( const char*, String ); SetProp( const char*, String );