diff --git a/Engine/src/Engine/Debug/Exceptions.h b/Engine/src/Engine/Debug/Exceptions.h index 6ae98ac..4612b24 100644 --- a/Engine/src/Engine/Debug/Exceptions.h +++ b/Engine/src/Engine/Debug/Exceptions.h @@ -1,6 +1,6 @@ #pragma once -#define DXC(x) hr = x; if(FAILED(x)) throw dxException(hr, __FILE__, __LINE__) +#define DXC(x) if(FAILED(hr = x)) throw dxException(hr, __FILE__, __LINE__) namespace Light {