mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Fixed V547: Bad C-string comparsion
This comparison of a string to an empty is meaningless, since in fact two pointers will be compared and the expression will always be false.
This commit is contained in:
parent
ffb943f3bb
commit
c0f3c4e2f5
1 changed files with 1 additions and 1 deletions
|
|
@ -2148,7 +2148,7 @@ DefineEngineFunction( displaySplashWindow, bool, (const char* path), (""),
|
||||||
"@return True if the splash window could be successfully initialized.\n\n"
|
"@return True if the splash window could be successfully initialized.\n\n"
|
||||||
"@ingroup Platform" )
|
"@ingroup Platform" )
|
||||||
{
|
{
|
||||||
if (path == "")
|
if (path == NULL || *path == '\0')
|
||||||
{
|
{
|
||||||
path = Con::getVariable("$Core::splashWindowImage");
|
path = Con::getVariable("$Core::splashWindowImage");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue