Skip to content

Commit b5983b9

Browse files
committed
Fixed a condition that was always true
1 parent 4b29c02 commit b5983b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/modules/dump/dump_functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void DumpStringTables()
133133
for (int iStringIndex = 0;iStringIndex < iTableLength;iStringIndex++)
134134
{
135135
const char *szCurrentString = pCurrentTable->GetString(iStringIndex);
136-
if (szCurrentString != "")
136+
if (strcmp(szCurrentString, "") != 0)
137137
{
138138
PythonLog("dump", "\t%s", szCurrentString);
139139
}

src/core/modules/engines/engines_wrap_python.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,14 @@ class CGameTraceExt
975975
class Ray_tExt
976976
{
977977
public:
978-
static Ray_t* CreateRay1(Vector vec1, Vector vec2)
978+
static Ray_t* CreateRay1(const Vector& vec1, const Vector& vec2)
979979
{
980980
Ray_t* pRay = new Ray_t;
981981
pRay->Init(vec1, vec2);
982982
return pRay;
983983
}
984984

985-
static Ray_t* CreateRay2(Vector vec1, Vector vec2, Vector vec3, Vector vec4)
985+
static Ray_t* CreateRay2(const Vector& vec1, const Vector& vec2, const Vector& vec3, const Vector& vec4)
986986
{
987987
Ray_t* pRay = new Ray_t;
988988
pRay->Init(vec1, vec2, vec3, vec4);

0 commit comments

Comments
 (0)