From 09e0c04f7b9d2d357715dc908ff0094dcf3e4fcc Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 15:11:05 +0700 Subject: Further C-style struct definitions fixes --- Minecraft.Client/TextureHolder.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Minecraft.Client') diff --git a/Minecraft.Client/TextureHolder.h b/Minecraft.Client/TextureHolder.h index 304d03e7..6c600d63 100644 --- a/Minecraft.Client/TextureHolder.h +++ b/Minecraft.Client/TextureHolder.h @@ -30,7 +30,8 @@ public: int compareTo(const TextureHolder *other) const; }; -typedef struct +struct TextureHolderLessThan { - bool operator() (const TextureHolder *first, const TextureHolder *second) const { return first->compareTo(second) >= 0; } -} TextureHolderLessThan; \ No newline at end of file + inline bool operator()(const TextureHolder *first, const TextureHolder *second) const + { return first->compareTo(second) >= 0; } +}; \ No newline at end of file -- cgit v1.2.3