Error subsystem does basic initialization during PHYSFS_init(), now.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Apr 2002 17:58:02 +0000
changeset 167 fd695ca50a2c
parent 166 ed10fe7cb16e
child 168 6b2a28327118
Error subsystem does basic initialization during PHYSFS_init(), now.
physfs.c
--- a/physfs.c	Thu Apr 04 17:56:20 2002 +0000
+++ b/physfs.c	Thu Apr 04 17:58:02 2002 +0000
@@ -427,6 +427,9 @@
     } /* if */
 
     initialized = 1;
+
+    /* This makes sure that the error subsystem is initialized. */
+    __PHYSFS_setError(PHYSFS_getLastError());
     return(1);
 } /* PHYSFS_init */