mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
fix gcc/clang
This commit is contained in:
parent
5d5e7ca042
commit
b6b6b0cb89
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
enum class ETextureType : uint8_t
|
||||
{
|
||||
Any,
|
||||
|
@ -28,7 +30,7 @@ class FTextureID
|
|||
|
||||
public:
|
||||
FTextureID() = default;
|
||||
FTextureID(nullptr_t) : texnum(0) {}
|
||||
FTextureID(std::nullptr_t) : texnum(0) {}
|
||||
bool isNull() const { return texnum == 0; }
|
||||
bool isValid() const { return texnum > 0; }
|
||||
bool Exists() const { return texnum >= 0; }
|
||||
|
|
Loading…
Reference in a new issue