Skip to content

Commit e4be725

Browse files
committed
if LBM files missing
Some folks (me!) deleted some of their LBM files decades ago. Game should not raise an exception if they are missing.
1 parent 4c5858e commit e4be725

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Engine/Surface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ void Surface::loadLbm(const std::string &filename)
127127
std::ifstream imgFile (filename.c_str(), std::ios::in | std::ios::binary);
128128
if (!imgFile)
129129
{
130-
throw Exception("Failed to load LBM");
130+
imgFile.close();
131+
return;
131132
}
132133

133134
// Lock the surface

0 commit comments

Comments
 (0)