Make GetOwner angelscript func return a reference to the ref.
continuous-integration/drone/push Build is failing
continuous-integration/drone/push Build is failing
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -75,7 +75,7 @@ private:
|
||||
FunctionInfo InitializeGetOwner(){
|
||||
auto t = _type;
|
||||
while (t != nullptr){
|
||||
auto val = t->GetMethodByDecl("protected ref@ GetOwner()", false);
|
||||
auto val = t->GetMethodByDecl("protected ref@& GetOwner()", false);
|
||||
if (val != nullptr){
|
||||
return FunctionInfo{.Exists = true, .Function = val};
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ void BasicScriptClass::Register(asIScriptEngine* engine) {
|
||||
shared abstract class PkmnScript {
|
||||
private ref@ __owner;
|
||||
|
||||
protected ref@ GetOwner() { return __owner; };
|
||||
protected ref@& GetOwner() { return __owner; };
|
||||
|
||||
// CreatureLib methods
|
||||
void OnInitialize(const narray<EffectParameter@>@ parameters){};
|
||||
|
||||
Reference in new issue
Block a user