- fix GCC/Clang compilation error

source/games/duke/src/types.h:178:14: error: exception specification of overriding function is more lax than base version
This commit is contained in:
alexey.lysiuk 2023-04-30 13:14:45 +03:00
parent ecfa45c3ec
commit a69d904192

View file

@ -175,7 +175,7 @@ public:
CDukeKillEvent(int type): Type_(type) {}
int Type() const { return Type_; }
// to print a meaningful message if killit got called from the wrong place.
const char* what() const override { return "killit called from outside RunState!"; }
const char* what() const noexcept override { return "killit called from outside RunState!"; }
};
struct animwalltype