mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-13 01:10:45 +00:00
Fix passing of non-primitive types to varargs functions
This commit is contained in:
parent
7d809a0d28
commit
da4078c707
2 changed files with 4 additions and 4 deletions
|
|
@ -1409,9 +1409,9 @@ static bool recurseDumpDirectories(const char *basePath, const char *subPath, Ve
|
|||
if( ( subPath && ( dStrncmp( subPath, "", 1 ) != 0 ) ))
|
||||
{
|
||||
if( subTrail == '/' )
|
||||
dSprintf(search, search.size, "%s%s", subPath, fileName);
|
||||
dSprintf(search, search.size, "%s%s", subPath, fileName.ptr);
|
||||
else
|
||||
dSprintf(search, search.size, "%s/%s", subPath, fileName);
|
||||
dSprintf(search, search.size, "%s/%s", subPath, fileName.ptr);
|
||||
char* child = search;
|
||||
|
||||
if( currentDepth < recurseDepth || recurseDepth == -1 )
|
||||
|
|
@ -1425,7 +1425,7 @@ static bool recurseDumpDirectories(const char *basePath, const char *subPath, Ve
|
|||
child = fileName;
|
||||
else
|
||||
{
|
||||
dSprintf(search, search.size, "/%s", fileName);
|
||||
dSprintf(search, search.size, "/%s", fileName.ptr);
|
||||
child = search;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ ConsoleFunction( mathInit, void, 1, 10, "( ... )"
|
|||
properties |= CPU_PROP_SSE;
|
||||
continue;
|
||||
}
|
||||
Con::printf("Error: MathInit(): ignoring unknown math extension '%s'", *argv);
|
||||
Con::printf("Error: MathInit(): ignoring unknown math extension '%s'", argv->getStringValue());
|
||||
}
|
||||
Math::init(properties);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue