aboutsummaryrefslogtreecommitdiffstats
path: root/src/script/vectors.cpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-09 02:40:20 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-10-09 02:40:20 -0400
commitf8b062e3fe43ece368c99d1083a929de92b7cff2 (patch)
treead6d5d85a0190165f100e505f259a8b4d5aa4915 /src/script/vectors.cpp
parenta422f32613441b5313e4a3bb0fab61f8cb87914c (diff)
Started more advanced collision detetction
Diffstat (limited to 'src/script/vectors.cpp')
-rw-r--r--src/script/vectors.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/vectors.cpp b/src/script/vectors.cpp
index 4f8b344..aa27aad 100644
--- a/src/script/vectors.cpp
+++ b/src/script/vectors.cpp
@@ -34,7 +34,7 @@ namespace Script
template<>
glm::vec2 to<glm::vec2>(sol::object obj)
{
- glm::vec2 toReturn;
+ glm::vec2 toReturn(0.0f);
if (obj.get_type() == sol::type::table) {
sol::table table = obj;
@@ -60,7 +60,7 @@ namespace Script
template<>
glm::vec3 to<glm::vec3>(sol::object obj)
{
- glm::vec3 toReturn;
+ glm::vec3 toReturn(0.0f);
if (obj.get_type() == sol::type::table) {
sol::table table = obj;
@@ -84,7 +84,7 @@ namespace Script
template<>
glm::vec4 to<glm::vec4>(sol::object obj)
{
- glm::vec4 toReturn;
+ glm::vec4 toReturn(0.0f);
if (obj.get_type() == sol::type::table) {
sol::table table = obj;