mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
replaced an assert with an exception
This commit is contained in:
parent
e19bbfd1b5
commit
3100206b28
@ -876,8 +876,8 @@ namespace MWScript
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::vector<std::string> contentFiles = MWBase::Environment::get().getWorld()->getContentFiles();
|
std::vector<std::string> contentFiles = MWBase::Environment::get().getWorld()->getContentFiles();
|
||||||
assert (contentFiles.size() > ptr.getCellRef().getRefNum().mContentFile);
|
|
||||||
msg << contentFiles[ptr.getCellRef().getRefNum().mContentFile] << std::endl;
|
msg << contentFiles.at (ptr.getCellRef().getRefNum().mContentFile) << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg << "RefID: " << ptr.getCellRef().getRefId() << std::endl;
|
msg << "RefID: " << ptr.getCellRef().getRefId() << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user