mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Remove value constructors for ConsoleValueRef & fix callbacks which use them. Fixes issue #1289
This commit is contained in:
parent
eb0351139e
commit
12d435c341
5 changed files with 17 additions and 43 deletions
|
|
@ -76,9 +76,10 @@ extern "C" {
|
|||
if (!entry)
|
||||
return "";
|
||||
|
||||
ConsoleValueRef argv[] = {"consoleExportXML"};
|
||||
static const char* exportArgv[1] = { "consoleExportXML" };
|
||||
static StringStackConsoleWrapper exportCmd(1, exportArgv);
|
||||
|
||||
return entry->cb.mStringCallbackFunc(NULL, 1, argv);
|
||||
return entry->cb.mStringCallbackFunc(NULL, exportCmd.argc, exportCmd.argv);
|
||||
}
|
||||
|
||||
MarshalNativeEntry* script_get_namespace_entry(const char* nameSpace, const char* name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue