Fixed compilation errors

This commit is contained in:
Yousef Khadadeh 2025-12-11 22:41:53 +03:00
parent 5b5aef8369
commit cfd6f4b4e0
8 changed files with 34 additions and 25 deletions

View file

@ -31,7 +31,7 @@ namespace NetworkingObjects {
return *this;
}
template <typename T> template <typename S> NetObjTemporaryPtr<S> NetObjTemporaryPtr<T>::cast() const {
return NetObjPtr<S>(objMan, id, static_cast<S>(rawPtr));
return NetObjTemporaryPtr<S>(objMan, id, static_cast<S*>(rawPtr));
}
template <typename T> NetObjManager* NetObjTemporaryPtr<T>::get_obj_man() const {