SCI: Remove asserting "new" allocation results

This commit is contained in:
sluicebox 2021-05-23 16:52:37 -06:00
parent f7ba6bb448
commit 4e8db68d4a
4 changed files with 0 additions and 4 deletions

View File

@ -267,7 +267,6 @@ ResourceSource::~ResourceSource() {
MacResourceForkResourceSource::MacResourceForkResourceSource(const Common::String &name, int volNum)
: ResourceSource(kSourceMacResourceFork, name, volNum) {
_macResMan = new Common::MacResManager();
assert(_macResMan);
}
MacResourceForkResourceSource::~MacResourceForkResourceSource() {

View File

@ -577,7 +577,6 @@ void ResourcePatcher::patchResource(Resource &resource, const GameResourcePatch
assert(newSize > 0);
target = new byte[newSize];
assert(target);
oldData = resource._data;
resource._data = target;

View File

@ -258,7 +258,6 @@ extern int showScummVMDialog(const Common::U32String &message, const Common::U32
Common::Error SciEngine::run() {
_resMan = new ResourceManager();
assert(_resMan);
_resMan->addAppropriateSources();
_resMan->init();

View File

@ -768,7 +768,6 @@ int MidiDriver_CMS::open() {
_rate = _mixer->getOutputRate();
_cms = new CMSEmulator(_rate);
assert(_cms);
for (uint i = 0; i < ARRAYSIZE(_channel); ++i)
_channel[i] = Channel();