diff options
author | Patric Stout <truebrain@openttd.org> | 2021-04-01 11:16:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 11:16:19 +0200 |
commit | fece1c57cab1d148e15775f3e10ba474dcfc1360 (patch) | |
tree | 864829048f995a13c2ada0a6f731404a7de0bab7 /src/object_gui.cpp | |
parent | 9eb6c78a0245317f8dc68ad1034b66019e1bf14f (diff) | |
download | openttd-fece1c57cab1d148e15775f3e10ba474dcfc1360.tar.xz |
Codechange: Suppress warnings when asserts are disabled (#8917)
Diffstat (limited to 'src/object_gui.cpp')
-rw-r--r-- | src/object_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp index b52c22b6e..7fab0b194 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -194,8 +194,7 @@ public: } else { this->SelectFirstAvailableObject(true); } - ObjectClass *objclass = ObjectClass::Get(_selected_object_class); - assert(objclass->GetUISpecCount() > 0); // object GUI should be disabled elsewise + assert(ObjectClass::Get(_selected_object_class)->GetUISpecCount() > 0); // object GUI should be disabled elsewise } void SetStringParameters(int widget) const override |