mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Enforce template syntax typename over class
This commit is contained in:
@@ -112,7 +112,7 @@ private:
|
||||
Error _update_spawn_visibility(int p_peer, const ObjectID &p_oid);
|
||||
void _free_remotes(const PeerInfo &p_info);
|
||||
|
||||
template <class T>
|
||||
template <typename T>
|
||||
static T *get_id_as(const ObjectID &p_id) {
|
||||
return p_id.is_valid() ? Object::cast_to<T>(ObjectDB::get_instance(p_id)) : nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user