mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 08:15:54 +00:00
replaced an assert with an exception
This commit is contained in:
parent
e19bbfd1b5
commit
3100206b28
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue