fixed random crashes by only typing = 0

This commit is contained in:
Yannik
2023-05-20 15:01:46 +02:00
parent 88a855d1da
commit 52fcce409a
7 changed files with 6 additions and 3 deletions

View File

@@ -10,12 +10,12 @@ config_version=5
[DiscordSDK]
EditorPresence/enabled=true
EditorPresence/enabled=false
[application]
config/name="GDExtension DiscordSDK Test Project"
run/main_scene="res://main.tscn"
run/main_scene="res://testscene.tscn"
config/features=PackedStringArray("4.0")
boot_splash/bg_color=Color(0.25098, 0.305882, 0.929412, 1)
boot_splash/image="res://assets/Banner_v1.png"

3
project/testscene.tscn Normal file
View File

@@ -0,0 +1,3 @@
[gd_scene format=3 uid="uid://e8jj6dtekt1c"]
[node name="testscene" type="Node2D"]

View File

@@ -18,7 +18,7 @@ protected:
static void _bind_methods();
private:
int64_t app_id;
int64_t app_id = 0;
String state;
String details;