We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509a489 commit 4e22682Copy full SHA for 4e22682
src/plugins/core/scripting/entities.cpp
@@ -15,7 +15,7 @@ std::vector<GCEntityInstance *> UTIL_FindEntitiesByClassname(const char *name)
15
if (!strcmp(pEntity->m_designerName.String(), name))
16
{
17
if (entityInstanceMapping.find(pEntity) == entityInstanceMapping.end())
18
- entityInstanceMapping.insert({pEntity, new GCEntityInstance((void *)pEntity)});
+ entityInstanceMapping.insert({pEntity, new GCEntityInstance((void *)(pEntity->m_pInstance))});
19
20
entities.push_back(entityInstanceMapping.at(pEntity));
21
}
0 commit comments