You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
@@ -81,10 +81,10 @@ class GDScriptCompiler {
|
||||
type.kind = GDScriptDataType::NATIVE;
|
||||
type.native_type = obj->get_class_name();
|
||||
|
||||
Ref<Script> script = obj->get_script();
|
||||
if (script.is_valid()) {
|
||||
type.script_type = script.ptr();
|
||||
Ref<GDScript> gdscript = script;
|
||||
Ref<Script> scr = obj->get_script();
|
||||
if (scr.is_valid()) {
|
||||
type.script_type = scr.ptr();
|
||||
Ref<GDScript> gdscript = scr;
|
||||
if (gdscript.is_valid()) {
|
||||
type.kind = GDScriptDataType::GDSCRIPT;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user