mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2026-10-18 08:53:26 +00:00
Fixes
This commit is contained in:
1 parent
dc2d8135cd
commit
d2c9e8c2e8
2 files changed
+53
-32
No files matched your search
@@ -51,6 +51,13 @@ namespace scripting
|
||||
throw std::runtime_error("Invalid type");
|
||||
}
|
||||
|
||||
const auto value = this->get<int>();
|
||||
|
||||
if (!value)
|
||||
{
|
||||
throw std::runtime_error("Null pointer");
|
||||
}
|
||||
|
||||
return reinterpret_cast<T*>(this->get<int>());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user