mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 13:25:53 -04:00
CLEANUP: No, record ids should totally be quoted
This commit is contained in:
parent
943cd765e7
commit
ced135bc87
@ -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…
x
Reference in New Issue
Block a user