Core/EventAI: Added a db error log to EventAI loading when AIName is not set properly (we don't like stealth changes to loaded data)

This commit is contained in:
Shauren
2011-07-04 18:58:52 +02:00
parent 9ed52dc646
commit 07f3da9426
2 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ namespace FactorySelector
// AIname in db
std::string ainame=creature->GetAIName();
if (!ai_factory && !ainame.empty())
ai_factory = ai_registry.GetRegistryItem(ainame.c_str());
ai_factory = ai_registry.GetRegistryItem(ainame);
// select by NPC flags
if (!ai_factory)