Skip to content

Commit 7a0ce31

Browse files
committed
Version 0.6.3
* Fixed bug with natives that returns Vector3 value
1 parent 4054195 commit 7a0ce31

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/constants.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define REDLUA_NAME "RedLua"
44
#define REDLUA_VERSION_MAJOR 0
55
#define REDLUA_VERSION_MINOR 6
6-
#define REDLUA_VERSION_PATCH 2
6+
#define REDLUA_VERSION_PATCH 3
77

88
#define _VTSH(x) #x
99
#define _VERTOSTR(MA, MI, PA) "v" _VTSH(MA) "." _VTSH(MI) "." _VTSH(PA)

src/native/call.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ static int native_perform(lua_State *L, NativeMeth *meth) {
119119
lua_pushlstring(L, (char *)ret, 1);
120120
break;
121121

122+
case NTYPE_VECTOR3:
123+
push_uncached_fullcopy(L, NTYPE_VECTOR3, ret, 1);
124+
break;
125+
122126
default:
123127
push_cached_fullobject(L, meth->returns, (NativeData)*ret);
124128
break;

0 commit comments

Comments
 (0)