From 1cd2b3ead98d53cf7fd21540a9fa3573daa83502 Mon Sep 17 00:00:00 2001 From: Robert MacGregor Date: Mon, 13 Jun 2022 11:45:05 -0400 Subject: [PATCH] * BugFix: Correct a small typo in the script function 'compareFileTimes'. --- Engine/source/console/fileSystemFunctions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Engine/source/console/fileSystemFunctions.cpp b/Engine/source/console/fileSystemFunctions.cpp index bf9c0ae63..cabb0b8d7 100644 --- a/Engine/source/console/fileSystemFunctions.cpp +++ b/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; }