浏览代码

Corrects Default Error Report for Audio.cc

This corrects alxCheckError and issue #234.
Peter Robinson 10 年之前
父节点
当前提交
e86eaee74a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
       break;
     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)
     return true;