mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-06-30 00:01:55 +00:00
build: fix building with clang
This commit is contained in:
@ -19,8 +19,8 @@ public:
|
||||
|
||||
template <typename T> static T* get() {
|
||||
for (const auto& component_ : get_components()) {
|
||||
if (typeid(*component_.get()) == typeid(T)) {
|
||||
return reinterpret_cast<T*>(component_.get());
|
||||
if (auto c = dynamic_cast<T*>(component_.get())) {
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user