summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamesh Ravone <ramesh.maran443@gmail.com>2017-10-03 08:29:08 +0000
committerGitHub <noreply@github.com>2017-10-03 08:29:08 +0000
commit286d2aff030bc69bb82482b3daeffa2e5629a3ac (patch)
treeac614ff3e7ed89c981b55ae05ce6c5c2bcf37bf5
parente32d7bb1b9d2f8cbd3b0ea8e6237841ca978e7da (diff)
downloadredot-cpp-286d2aff030bc69bb82482b3daeffa2e5629a3ac.tar.gz
Fix `_arg_cast`
This has been an issue from the day one, A lot of people mentioned this on discord too
-rw-r--r--include/core/Godot.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp
index 45aca16..90a73aa 100644
--- a/include/core/Godot.hpp
+++ b/include/core/Godot.hpp
@@ -60,7 +60,7 @@ template<class T>
struct _ArgCast {
static T _arg_cast(Variant a)
{
- return static_cast<T>(a);
+ return a;
}
};