1
0
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:
Marc Zinnschlag 2014-06-27 08:37:41 +02:00
parent e19bbfd1b5
commit 3100206b28

View File

@ -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;