Bladeren bron

* BugFix: Correct a small typo in the script function 'compareFileTimes'.

Robert MacGregor 3 jaren geleden
bovenliggende
commit
1cd2b3ead9
1 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 4 4
      Engine/source/console/fileSystemFunctions.cpp

+ 4 - 4
Engine/source/console/fileSystemFunctions.cpp

@@ -594,19 +594,19 @@ DefineEngineFunction(compareFileTimes, S32, (const char* fileA, const char* file
    }
 
    Torque::FS::FileNode::Attributes fileAAttributes;
-   Torque::FS::FileNode::Attributes fileABttributes;
+   Torque::FS::FileNode::Attributes fileBAttributes;
 
    // If retrieval of attributes fails, we can't compare   
-   if (!nodeA->getAttributes(&fileAAttributes) || !nodeB->getAttributes(&fileABttributes))
+   if (!nodeA->getAttributes(&fileAAttributes) || !nodeB->getAttributes(&fileBAttributes))
    {
       return 0;
    }
 
-   if (fileAAttributes.mtime > fileABttributes.mtime)
+   if (fileAAttributes.mtime > fileBAttributes.mtime)
    {
       return 1;
    }
-   else if (fileAAttributes.mtime < fileABttributes.mtime)
+   else if (fileAAttributes.mtime < fileBAttributes.mtime)
    {
       return -1;
    }