You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting the value of local variable foo in any event can permanently alter the declared value of local variable bar. The declaration of bar, even if the setting of foo is thereafter bypassed, will be permanently altered. Note that this only occurs if there is a "Wait" event after the declaration of bar.
Notice how the value of foo is still "Hello World!"
Press enter to enable bar setting
Press space and wait again
Notice how the value of foo is now equal to the set value of bar in the event sheet
Press enter to disable bar setting
Notice how foo is now permanently declared with the value of bar for this runtime
GDevelop platform
Desktop
GDevelop version
5.4.204
Platform info
OS (e.g. Windows, Linux, macOS, Android, iOS)
Windows
OS Version (e.g. Windows 10, macOS 10.15)
Windows 11 Home (22H2)
Browser(For Web) (e.g. Chrome, Firefox, Safari)
Not applicable
Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)
Not applicable
Additional context
The variable being overwritten only gets overwritten after the "Wait" event finishes.
The text was updated successfully, but these errors were encountered:
Granshmeyr
changed the title
"Wait" causes permanent alteration to local variable declaration if another is also declared
"Wait" causes permanent alteration to local variable declaration if another's value is set
Jun 23, 2024
Is there an existing issue for this?
Describe the bug
Setting the value of local variable
foo
in any event can permanently alter the declared value of local variablebar
. The declaration ofbar
, even if the setting offoo
is thereafter bypassed, will be permanently altered. Note that this only occurs if there is a "Wait" event after the declaration ofbar
.Events preview
Steps to reproduce
foo
foo
is still"Hello World!"
bar
settingfoo
is now equal to the set value ofbar
in the event sheetbar
settingfoo
is now permanently declared with the value ofbar
for this runtimeGDevelop platform
Desktop
GDevelop version
5.4.204
Platform info
OS (e.g. Windows, Linux, macOS, Android, iOS)
Windows
OS Version (e.g. Windows 10, macOS 10.15)
Windows 11 Home (22H2)
Browser(For Web) (e.g. Chrome, Firefox, Safari)
Not applicable
Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)
Not applicable
Additional context
The variable being overwritten only gets overwritten after the "Wait" event finishes.
The text was updated successfully, but these errors were encountered: