diff dmsimple.c @ 733:b505b81a43de

Fix resource loading.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 21 Apr 2013 20:03:08 +0300
parents 3d813c81f33c
children 8dd6d512cbb2
line wrap: on
line diff
--- a/dmsimple.c	Sun Apr 21 19:58:59 2013 +0300
+++ b/dmsimple.c	Sun Apr 21 20:03:08 2013 +0300
@@ -253,7 +253,7 @@
     char buf[128];
 
     if ((res = dmf_open(engine.resources, filename, &file)) != DMERR_OK)
-        return DMERR_FOPEN;
+        return res;
 
     while (dmfgets(buf, sizeof(buf), file) != NULL)
     {