From 7d66dfec0e41aa4e98a77e8fc4e161234574b545 Mon Sep 17 00:00:00 2001
From: Marianne Gagnon <auria.mg@gmail.com>
Date: Tue, 12 May 2015 19:49:14 -0400
Subject: [PATCH] Make scripting work on OS X, hoping this doesn't break
 windows or linux

---
 src/scriptengine/scriptvec3.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/scriptengine/scriptvec3.cpp b/src/scriptengine/scriptvec3.cpp
index c5c96a0de..29e4d1818 100644
--- a/src/scriptengine/scriptvec3.cpp
+++ b/src/scriptengine/scriptvec3.cpp
@@ -61,7 +61,7 @@ namespace Scripting
     void RegisterVec3(asIScriptEngine *engine)
     {
         int r;
-        r = engine->RegisterObjectType("Vec3", sizeof(SimpleVec3), asOBJ_VALUE | asOBJ_APP_CLASS_ALLFLOATS | asGetTypeTraits<SimpleVec3>()); assert(r >= 0);
+        r = engine->RegisterObjectType("Vec3", sizeof(SimpleVec3), asOBJ_VALUE | asOBJ_APP_CLASS_ALLFLOATS | asOBJ_APP_CLASS_CDA); assert(r >= 0);
         // Register the behaviours
         r = engine->RegisterObjectBehaviour("Vec3", asBEHAVE_CONSTRUCT, "void f()", asFUNCTION(Constructor), asCALL_CDECL_OBJLAST); assert(r >= 0);
         r = engine->RegisterObjectBehaviour("Vec3", asBEHAVE_DESTRUCT, "void f()", asFUNCTION(Destructor), asCALL_CDECL_OBJLAST); assert(r >= 0);