Made local_version be defined on _ready()

This commit is contained in:
Noah 2022-10-28 21:58:00 -05:00
parent a737ce4821
commit 62cdd67de4

View File

@ -51,12 +51,14 @@ func _process(_delta):
# Set the Local_version label # Set the Local_version label
if local_version: if local_version:
$Panel/Panel/Local_version.text = "Local Version: "+local_version $Panel/Panel/Local_version.text = "Local Version: "+local_version
if newest_version: if newest_version:
$Panel/Panel/Online_version.text = "Online Version: "+newest_version $Panel/Panel/Online_version.text = "Online Version: "+newest_version
# When everything is loaded, # When everything is loaded,
func _ready(): func _ready():
# Get the installed version
local_version = Versions.get_version()
# Randomize # Randomize
random = RandomNumberGenerator.new() random = RandomNumberGenerator.new()
random.randomize() random.randomize()