Kim Kulling 3 lat temu
rodzic
commit
215f4e1f4d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      code/Common/BaseImporter.cpp

+ 1 - 1
code/Common/BaseImporter.cpp

@@ -377,7 +377,7 @@ void BaseImporter::ConvertToUTF8(std::vector<char> &data) {
         // swap the endianness ..
         for (uint16_t *p = (uint16_t *)&data.front(), *end = (uint16_t *)&data.back(); p <= end; ++p) {
             // Check to ensure no overflow can happen
-            if ((index+2) < data.Size()) {
+            if ((index+2) < data.size()) {
                 // Swap the data
                 ByteSwap::Swap2(p);
                 index += 2;