[AD] glitch in save_sample |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
This patch fixes a copy/paste mistake which makes save_sample crash
(seems like it was never used by anyone yet).
--
Elias Pschernig <elias@xxxxxxxxxx>
Index: src/readsmp.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/readsmp.c,v
retrieving revision 1.3
diff -u -r1.3 readsmp.c
--- src/readsmp.c 11 Sep 2002 15:39:15 -0000 1.3
+++ src/readsmp.c 13 Jan 2003 09:20:43 -0000
@@ -103,7 +103,7 @@
for (iter = sample_type_list; iter; iter = iter->next) {
if (stricmp(iter->ext, aext) == 0) {
- if (iter->load)
+ if (iter->save)
return iter->save(filename, smp);
return 1;
}