diff --git a/src/core/Json.cpp b/src/core/Json.cpp index 0c89336d73..bfa0ba3f48 100644 --- a/src/core/Json.cpp +++ b/src/core/Json.cpp @@ -13,7 +13,7 @@ namespace Json size_t fileLength = (size_t)fs.GetLength(); if (fileLength > maxSize) { - throw IOException("Language file too large."); + throw IOException("Json file too large."); } utf8 * fileData = Memory::Allocate(fileLength + 1); diff --git a/src/core/List.hpp b/src/core/List.hpp index 2c750f4833..78706d7a3a 100644 --- a/src/core/List.hpp +++ b/src/core/List.hpp @@ -47,7 +47,7 @@ public: void Insert(T item, size_t index) { Guard::ArgumentInRange(index, (size_t)0, this->size()); - this->insert() + this->insert(this->begin() + index, item); } bool Remove(T item)