foxygit / fake-08-xbox360 Log in
commit 9e3ecd325c70d8e29c8d4e1a5c1e7bd2a20c9b36
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Apr 14 20:17:11 2021 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Apr 14 20:17:11 2021 -0600

    Fix dset to honor fractional values
---
 source/picoluaapi.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/picoluaapi.cpp b/source/picoluaapi.cpp
index 35b6522..3c04e57 100644
--- a/source/picoluaapi.cpp
+++ b/source/picoluaapi.cpp
@@ -987,9 +987,9 @@ int dget(lua_State *L) {

 int dset(lua_State *L) {
     int dest = lua_tonumber(L,1);
-    int val = lua_tonumber(L,2);
+    fix32 val = lua_tonumber(L,2);

-    _vmForLuaApi->vm_dset(dest, (int32_t)val);
+    _vmForLuaApi->vm_dset(dest, val);

     return 0;
 }