Skip to content

Commit 0321acc

Browse files
committed
Fix variable declaration in update detection
1 parent 955b954 commit 0321acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check_updates/check_updates.gml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ function check_updates() {
3535
var res = async_load[? "result"];
3636
res = json_parse(res);
3737

38+
var release = -1;
3839
if (check_prerelease) {
3940
// Iterate array of releases and get the first (latest) release OR pre-release
40-
var release = -1;
4141
for (var i = 0; i < array_length(res); i++) {
4242
if (check_prerelease || !res[i].prerelease) {
4343
release = res[i];

0 commit comments

Comments
 (0)