mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 23:16:39 +00:00
CLEANUP: No, record ids should totally be quoted
This commit is contained in:
parent
943cd765e7
commit
ced135bc87
1 changed files with 3 additions and 2 deletions
|
|
@ -204,10 +204,11 @@ namespace MWLua
|
||||||
= MWBase::Environment::get().getESMStore()->get<ESM::Dialogue>().search(topic);
|
= MWBase::Environment::get().getESMStore()->get<ESM::Dialogue>().search(topic);
|
||||||
|
|
||||||
if (!dialogueRecord)
|
if (!dialogueRecord)
|
||||||
throw std::runtime_error("Failed to add topic " + std::string(topicId) + ": topic record not found");
|
throw std::runtime_error(
|
||||||
|
"Failed to add topic \"" + std::string(topicId) + "\": topic record not found");
|
||||||
|
|
||||||
if (dialogueRecord->mType != ESM::Dialogue::Topic)
|
if (dialogueRecord->mType != ESM::Dialogue::Topic)
|
||||||
throw std::runtime_error("Failed to add topic " + std::string(topicId) + ": record is not a topic");
|
throw std::runtime_error("Failed to add topic \"" + std::string(topicId) + "\": record is not a topic");
|
||||||
|
|
||||||
MWBase::Environment::get().getDialogueManager()->addTopic(topic);
|
MWBase::Environment::get().getDialogueManager()->addTopic(topic);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue