]> git.jsancho.org Git - lugaru.git/blobdiff - Source/openal_wrapper.cpp
Cleanning up Sprite class. More can be done, but it's already prettier.
[lugaru.git] / Source / openal_wrapper.cpp
index 1e31312af8f87ebabfa45e2ad8ae2fb077f76108..1c3f2acd4d39351a57d63a000b9c1c88908a9cc1 100644 (file)
@@ -374,7 +374,7 @@ static void *decode_to_pcm(const char *_fname, ALenum &format, ALsizei &size, AL
     char *fname = (char *) alloca(strlen(_fname) + 16);
     strcpy(fname, _fname);
     char *ptr = strchr(fname, '.');
-    if (ptr) *ptr = NULL;
+    if (ptr) *ptr = '\0';
     strcat(fname, ".ogg");
 
     // just in case...