mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Merge pull request #669 from BeamNG/fix_ALDeviceList_GetDeviceVersion
Fix ALDeviceList::GetDeviceVersion incorrect check of valid pointer.
This commit is contained in:
commit
8c00e79ded
1 changed files with 2 additions and 2 deletions
|
|
@ -161,9 +161,9 @@ const char *ALDeviceList::GetDeviceName(int index)
|
||||||
void ALDeviceList::GetDeviceVersion(int index, int *major, int *minor)
|
void ALDeviceList::GetDeviceVersion(int index, int *major, int *minor)
|
||||||
{
|
{
|
||||||
if (index < GetNumDevices()) {
|
if (index < GetNumDevices()) {
|
||||||
if (*major)
|
if (major)
|
||||||
*major = vDeviceInfo[index].iMajorVersion;
|
*major = vDeviceInfo[index].iMajorVersion;
|
||||||
if (*minor)
|
if (minor)
|
||||||
*minor = vDeviceInfo[index].iMinorVersion;
|
*minor = vDeviceInfo[index].iMinorVersion;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue