diff options
| author | Rémi Verschelde | 2017-01-16 20:06:54 +0100 |
|---|---|---|
| committer | GitHub | 2017-01-16 20:06:54 +0100 |
| commit | bf05dab74f5c0fc19663dce05b462be2aba581a5 (patch) | |
| tree | 837c11d04a76437e69d43744487cedf1bb5ec1f0 /modules/gdscript/gd_functions.cpp | |
| parent | 0a9aee6b1d20f29e0e7a3bc8990f807144b62f74 (diff) | |
| parent | 4c9004671af455a03acb4e2750b12d62b2b3c917 (diff) | |
| download | godot-bf05dab74f5c0fc19663dce05b462be2aba581a5.tar.gz godot-bf05dab74f5c0fc19663dce05b462be2aba581a5.tar.zst godot-bf05dab74f5c0fc19663dce05b462be2aba581a5.zip | |
Diffstat (limited to 'modules/gdscript/gd_functions.cpp')
| -rw-r--r-- | modules/gdscript/gd_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index f1e9f7de0..4f3516c09 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -351,14 +351,14 @@ void GDFunctions::call(Function p_func,const Variant **p_args,int p_arg_count,Va case MATH_SEED: { VALIDATE_ARG_COUNT(1); VALIDATE_ARG_NUM(0); - uint32_t seed=*p_args[0]; + uint64_t seed=*p_args[0]; Math::seed(seed); r_ret=Variant(); } break; case MATH_RANDSEED: { VALIDATE_ARG_COUNT(1); VALIDATE_ARG_NUM(0); - uint32_t seed=*p_args[0]; + uint64_t seed=*p_args[0]; int ret = Math::rand_from_seed(&seed); Array reta; reta.push_back(ret); |
