浏览代码

Fix ALDeviceList::GetDeviceVersion incorrect check of valid pointer.

LuisAntonRebollo 11 年之前
父节点
当前提交
8e2fca11c3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Engine/source/sfx/openal/aldlist.cpp

+ 2 - 2
Engine/source/sfx/openal/aldlist.cpp

@@ -161,9 +161,9 @@ const char *ALDeviceList::GetDeviceName(int index)
 void ALDeviceList::GetDeviceVersion(int index, int *major, int *minor)
 {
 	if (index < GetNumDevices()) {
-		if (*major)
+		if (major)
 			*major = vDeviceInfo[index].iMajorVersion;
-		if (*minor)
+		if (minor)
 			*minor = vDeviceInfo[index].iMinorVersion;
 	}
 	return;