fix: lua::tovec + add vecn.tostring

This commit is contained in:
MihailRis
2024-06-25 19:01:00 +03:00
parent 10301bb686
commit 33b21953e3
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -336,7 +336,7 @@ namespace lua {
}
glm::vec<n, float> vec;
for (int i = 0; i < n; i++) {
rawgeti(L, 1);
rawgeti(L, i+1);
vec[i] = tonumber(L, -1);
pop(L);
}