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

View File

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