mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
20e63ad763
commit
959701208b
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"
|
||||
"@ingroup Platform" )
|
||||
{
|
||||
if (path == "")
|
||||
if (path == NULL || *path == '\0')
|
||||
{
|
||||
path = Con::getVariable("$Core::splashWindowImage");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue