DEADSOFTWARE

no more d2d:f built-in dfwad reader, it now using sfs (and can't load map, lol)
[d2df-sdl.git] / src / game / g_playermodel.pas
index a2ceab034c4c9739583be4a580241e1eeb6566ac..6174d8780b5d81cfb29375d5166997f8f4380b5c 100644 (file)
@@ -247,7 +247,7 @@ begin
   WAD := TWADEditor_1.Create;
   WAD.ReadFile(FileName);
 
-  if WAD.GetLastError <> DFWAD_NOERROR then
+  if {WAD.GetLastError <> DFWAD_NOERROR} not WAD.isOpen then
   begin
     WAD.Free();
     Exit;