Browse Source

Corrects Default Error Report for Audio.cc

This corrects alxCheckError and issue #234.
Peter Robinson 10 years ago
parent
commit
e86eaee74a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/source/audio/audio.cc

+ 1 - 1
engine/source/audio/audio.cc

@@ -2188,7 +2188,7 @@ bool alxCheckError(const char* sourceFuncName, const char* alFuncName)
       Con::errorf("%s - %s OpenAL AL_OUT_OF_MEMORY error code returned", sourceFuncName, alFuncName);
       Con::errorf("%s - %s OpenAL AL_OUT_OF_MEMORY error code returned", sourceFuncName, alFuncName);
       break;
       break;
     default:
     default:
-      Con::errorf("%s - %s OpenAL has encountered a problem and won't tell us what it is. %d", errorVal, sourceFuncName, alFuncName);
+      Con::errorf("%s - %s OpenAL has encountered a problem and won't tell us what it is. %d", sourceFuncName, alFuncName, errorVal);
   };
   };
   if (errorVal == AL_NO_ERROR)
   if (errorVal == AL_NO_ERROR)
     return true;
     return true;