Skip to content

Commit

Permalink
fix gcc/clang
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Nov 20, 2023
1 parent b0a93bd commit ab2d5d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/textures/textureid.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <cstddef>

enum class ETextureType : uint8_t
{
Any,
Expand Down Expand Up @@ -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; }
Expand Down

0 comments on commit ab2d5d9

Please sign in to comment.