Browse Source

Merge pull request #45882 from HenryWConklin/broken-gdnative-test

Fix broken gdnative variant test
Rémi Verschelde 4 years ago
parent
commit
5f05e5d904
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdnative/tests/test_variant.h

+ 1 - 0
modules/gdnative/tests/test_variant.h

@@ -124,6 +124,7 @@ TEST_CASE("[GDNative Variant] Variant evaluate") {
 	godot_variant_new_int(&two, 2);
 	godot_variant_new_int(&two, 2);
 
 
 	godot_variant three;
 	godot_variant three;
+	godot_variant_new_nil(&three);
 	bool valid = false;
 	bool valid = false;
 
 
 	godot_variant_evaluate(GODOT_VARIANT_OP_ADD, &one, &two, &three, &valid);
 	godot_variant_evaluate(GODOT_VARIANT_OP_ADD, &one, &two, &three, &valid);