mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
replaced an assert with an exception
This commit is contained in:
parent
e19bbfd1b5
commit
3100206b28
@ -876,8 +876,8 @@ namespace MWScript
|
||||
else
|
||||
{
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user