From 6056393af7835d18a65c0244b4666b975b84835e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 23 Jan 2011 08:49:30 +0000 Subject: [PATCH] - added a check to output a clear error message if no IWAD definitions could be loaded. SVN r3119 (trunk) --- src/d_iwad.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d_iwad.cpp b/src/d_iwad.cpp index 0999a77eac..705ff2f727 100644 --- a/src/d_iwad.cpp +++ b/src/d_iwad.cpp @@ -269,6 +269,10 @@ void FIWadManager::ParseIWadInfos(const char *fn) } delete resfile; } + if (mIWadNames.Size() == 0 || mIWads.Size() == 0) + { + I_FatalError("No IWAD definitions found"); + } }