dungeon_crawler
diff prototype/src/dataset.h @ 63:7f52d6310317
fixed design issue with datafile_path
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 02 Oct 2012 04:52:59 +0300 |
parents | aa9e28670ae2 |
children | 0b130c6e534d |
line diff
1.1 --- a/prototype/src/dataset.h Tue Sep 25 06:59:11 2012 +0300 1.2 +++ b/prototype/src/dataset.h Tue Oct 02 04:52:59 2012 +0300 1.3 @@ -53,7 +53,7 @@ 1.4 } else { 1.5 path = name; 1.6 } 1.7 - if(!(path = datafile_path(path))) { 1.8 + if(!(path = datafile_path(path).c_str()) || !*path) { 1.9 fprintf(stderr, "can't find data file: %s\n", name); 1.10 return 0; 1.11 }