GDScript: Don't use the NIL address to hold return value of functions
This prevents that the NIL address is filled with another value, which causes problems for some instructions that read from NIL.
This commit is contained in:
parent
b14f7aa9f9
commit
a3816434a6
5 changed files with 104 additions and 43 deletions
|
|
@ -309,6 +309,8 @@ class GDScriptByteCodeGenerator : public GDScriptCodeGenerator {
|
|||
}
|
||||
}
|
||||
|
||||
Address get_call_target(const Address &p_target);
|
||||
|
||||
int address_of(const Address &p_address) {
|
||||
switch (p_address.mode) {
|
||||
case Address::SELF:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue