few bugs fixed thanks to explicit bool constructor and clang.

explicit bool constructor has thus now been removed, as it served it's mission!
This commit is contained in:
Juan Linietsky 2017-08-05 21:43:10 -03:00
parent 76ce18c290
commit 37adf936ab
3 changed files with 3 additions and 2 deletions

View file

@ -239,7 +239,7 @@ public:
operator IP_Address() const;
explicit Variant(bool p_bool);
Variant(bool p_bool);
Variant(signed int p_int); // real one
Variant(unsigned int p_int);
#ifdef NEED_LONG_INT

View file

@ -2798,7 +2798,7 @@ public:
r_error.error = Variant::CallError::CALL_ERROR_INVALID_METHOD;
return 0;
}
*p_outputs[0] = subcall->call(VisualScriptLanguage::singleton->_subcall, p_inputs, input_args, r_error_str);
*p_outputs[0] = subcall->call(VisualScriptLanguage::singleton->_subcall, p_inputs, input_args, r_error);
return 0;
}
};

View file

@ -33,6 +33,7 @@
#include "scene/2d/animated_sprite.h"
#include "scene/2d/physics_body_2d.h"
#include "scene/animation/animation_player.h"
#include "scene/main/viewport.h"
#include "scene/scene_string_names.h"
#include "scene/scene_string_names.h"