Game Development Community

Crash in ResManager::getCrc

by Ed Zavada · in Torque Game Engine · 02/09/2007 (8:07 am) · 0 replies

Crashes if the stream fails to open. To fix, change this:

Stream *stream = openStream (obj);


To this:
Stream *stream = openStream (obj);
[b]      if (!stream) 
         return false; // openStream can fail [/b]