Skip to content

Commit 0cf6a8e

Browse files
committed
Some minor fixes/improvements
1 parent d143cf2 commit 0cf6a8e

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/core/modules/engines/engines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class IEngineTraceExt
166166
entities.append(ptr(ppEntities[i]));
167167
}
168168
}
169-
delete ppEntities;
169+
delete [] ppEntities;
170170
return make_tuple(iMask, entities);
171171
}
172172

src/core/modules/engines/engines_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void prepare_command(tuple args, dict kwargs, ConCommand** pCommandOut, std::str
6868

6969
*pCommandOut = pCommand;
7070

71-
*szCommandOut = "";
71+
szCommandOut->clear();
7272
for(int i=0; i < len(args); ++i)
7373
{
7474
const char* temp = extract<const char*>(str(args[i]));

src/core/modules/engines/orangebox/engines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class GameIVEngineServerExt
4646
char* szMapName = new char[iLength];
4747
V_snprintf(szMapName, iLength, "maps/%s.bsp", map_name);
4848
bool result = pServer->IsMapValid(szMapName);
49-
delete szMapName;
49+
delete [] szMapName;
5050
return result;
5151
}
5252

src/loader/loader_main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ CSourcePython::CSourcePython()
6868
{
6969
m_iClientCommandIndex = 0;
7070
m_pCore = NULL;
71+
m_pCorePlugin = NULL;
7172
}
7273

7374
CSourcePython::~CSourcePython()

0 commit comments

Comments
 (0)