almost-working lcs conversion

This commit is contained in:
aap
2015-12-18 17:34:12 +01:00
parent 9f9c36a4ef
commit 39711c0a32
6 changed files with 275 additions and 36 deletions

View File

@@ -112,7 +112,7 @@ void
Texture::decRef(void)
{
this->refCount--;
if(this->refCount)
if(this->refCount == NULL)
delete this;
}
@@ -346,7 +346,7 @@ Image::getFilename(const char *name)
char *s, *p = searchPaths;
int len = strlen(name)+1;
if(numSearchPaths == 0){
f = fopen(name, "r");
f = fopen(name, "rb");
if(f){
fclose(f);
printf("found %s\n", name);