Skip to content

Commit 89e576c

Browse files
committed
Fixed a crash
1 parent a0485b2 commit 89e576c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/sp_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ void CSourcePython::OnEntityCreated( CBaseEntity *pEntity )
508508
}
509509

510510
edict_t *pEdict;
511-
if (!EdictFromIndex(iEntityIndex, pEdict)) {
511+
if (EdictFromIndex(iEntityIndex, pEdict)) {
512512
IServerUnknown* pServerUnknown = pEdict->GetUnknown();
513513
if (pServerUnknown)
514514
pEdict->m_pNetworkable = pServerUnknown->GetNetworkable();

0 commit comments

Comments
 (0)