mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-07-03 17:51:55 +00:00
Fixes
This commit is contained in:
@ -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