* Create the reference counter for the given ScriptObject instance. * @param data The underlying object. */
| 443 | * @param data The underlying object. |
| 444 | */ |
| 445 | ScriptObjectRef(T *data) : data(data) |
| 446 | { |
| 447 | if (this->data != nullptr) this->data->AddRef(); |
| 448 | } |
| 449 | |
| 450 | /* No copy constructor. */ |
| 451 | ScriptObjectRef(const ScriptObjectRef<T> &ref) = delete; |