Skip to content

Commit 1dfb759

Browse files
committed
game\server: Multisource::Use should report warn and exit if be used by unknown entity
See ValveSoftware/source-sdk-2013#1250
1 parent 3d9a68e commit 1dfb759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game/server/logicentities.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,8 @@ void CMultiSource::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE
12031203
break;
12041204

12051205
// if we didn't find it, report error and leave
1206-
if (i > m_iTotal)
1206+
// dimhotepus: Exit when caller not found.
1207+
if (i >= m_iTotal)
12071208
{
12081209
Warning("MultiSrc: Used by non member %s.\n", pCaller->edict() ? pCaller->GetClassname() : "<logical entity>");
12091210
return;

0 commit comments

Comments
 (0)