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 564b340 commit ef47a17Copy full SHA for ef47a17
1 file changed
src/xrServerEntities/object_factory_spawner.cpp
@@ -61,7 +61,7 @@ void CObjectFactory::init_spawn_data()
61
cpcstr npc_random = pSettings->read_if_exists<pcstr>(name, "npc_random", "");
62
_GetItem(npc ? npc : npc_random, 0, temp);
63
64
- if (!temp.empty())
+ if (!temp.empty() && pSettings->line_exist(temp.c_str(), "class"))
65
{
66
const auto npc_clsid = pSettings->r_clsid(temp.c_str(), "class");
67
const auto npc_kind = pSettings->read_if_exists<pcstr>(temp.c_str(), "kind", nullptr);
0 commit comments