Made type-checking for arguments less trict between bool, int real. Fixes #1816
This commit is contained in:
parent
0995a230f6
commit
bc3c14a76b
1 changed files with 4 additions and 4 deletions
|
@ -463,8 +463,8 @@ bool Variant::can_convert_strict(Variant::Type p_type_from,Variant::Type p_type_
|
||||||
case BOOL: {
|
case BOOL: {
|
||||||
|
|
||||||
static const Type valid[]={
|
static const Type valid[]={
|
||||||
//INT,
|
INT,
|
||||||
//REAL,
|
REAL,
|
||||||
//STRING,
|
//STRING,
|
||||||
NIL,
|
NIL,
|
||||||
};
|
};
|
||||||
|
@ -474,7 +474,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from,Variant::Type p_type_
|
||||||
case INT: {
|
case INT: {
|
||||||
|
|
||||||
static const Type valid[]={
|
static const Type valid[]={
|
||||||
//BOOL,
|
BOOL,
|
||||||
REAL,
|
REAL,
|
||||||
//STRING,
|
//STRING,
|
||||||
NIL,
|
NIL,
|
||||||
|
@ -486,7 +486,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from,Variant::Type p_type_
|
||||||
case REAL: {
|
case REAL: {
|
||||||
|
|
||||||
static const Type valid[]={
|
static const Type valid[]={
|
||||||
//BOOL,
|
BOOL,
|
||||||
INT,
|
INT,
|
||||||
//STRING,
|
//STRING,
|
||||||
NIL,
|
NIL,
|
||||||
|
|
Loading…
Reference in a new issue