From 5c2e951d3f37d09940b69e34e836d71d4cedb3ec Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Sat, 30 Jan 2016 11:12:25 +0000 Subject: [PATCH] fix remaining issues with theme refactor branch --- src/core/Json.cpp | 2 +- src/core/List.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)