aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts/scriptdatatables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/scripts/scriptdatatables.cpp')
-rw-r--r--NorthstarDLL/scripts/scriptdatatables.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/scripts/scriptdatatables.cpp b/NorthstarDLL/scripts/scriptdatatables.cpp
index 8aa52fdb..532624f3 100644
--- a/NorthstarDLL/scripts/scriptdatatables.cpp
+++ b/NorthstarDLL/scripts/scriptdatatables.cpp
@@ -765,8 +765,8 @@ std::string DataTableToString(Datatable* datatable)
case DatatableType::VECTOR:
{
- Vector3 pVector((float*)pUntypedVal);
- sCSVString += fmt::format("<{},{},{}>", pVector.x, pVector.y, pVector.z);
+ Vector3* pVector = (Vector3*)(pUntypedVal);
+ sCSVString += fmt::format("<{},{},{}>", pVector->x, pVector->y, pVector->z);
break;
}