aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/scripts/scriptdatatables.cpp
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-06-29 04:19:34 +0100
committerGitHub <noreply@github.com>2023-06-28 23:19:34 -0400
commitb5c4e4e7ed81394070b05296ed087b6043d27667 (patch)
treedc4d7eaa7eed4fec24fc3d1821ca10b749bc0435 /NorthstarDLL/scripts/scriptdatatables.cpp
parent2bd882e9aa9f40cf077091148c09765aa0a1f6b1 (diff)
downloadNorthstarLauncher-b5c4e4e7ed81394070b05296ed087b6043d27667.tar.gz
NorthstarLauncher-b5c4e4e7ed81394070b05296ed087b6043d27667.zip
Replace dependent names with explicit template definition (#490)
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 b050ff8d..8a2935c2 100644
--- a/NorthstarDLL/scripts/scriptdatatables.cpp
+++ b/NorthstarDLL/scripts/scriptdatatables.cpp
@@ -116,7 +116,7 @@ REPLACE_SQFUNC(GetDataTable, (ScriptContext::UI | ScriptContext::CLIENT | Script
// first, check the cache
if (CSVCache.find(pAssetName) != CSVCache.end())
{
- CSVData** pUserdata = g_pSquirrel<context>->createuserdata<CSVData*>(sqvm, sizeof(CSVData*));
+ CSVData** pUserdata = g_pSquirrel<context>->template createuserdata<CSVData*>(sqvm, sizeof(CSVData*));
g_pSquirrel<context>->setuserdatatypeid(sqvm, -1, USERDATA_TYPE_DATATABLE_CUSTOM);
*pUserdata = &CSVCache[pAssetName];
@@ -251,7 +251,7 @@ REPLACE_SQFUNC(GetDataTable, (ScriptContext::UI | ScriptContext::CLIENT | Script
}
// add to cache and return
- CSVData** pUserdata = g_pSquirrel<context>->createuserdata<CSVData*>(sqvm, sizeof(CSVData*));
+ CSVData** pUserdata = g_pSquirrel<context>->template createuserdata<CSVData*>(sqvm, sizeof(CSVData*));
g_pSquirrel<context>->setuserdatatypeid(sqvm, -1, USERDATA_TYPE_DATATABLE_CUSTOM);
CSVCache[pAssetName] = csv;
*pUserdata = &CSVCache[pAssetName];