diff --git a/Assets/Cryville/Crtr/Skin/Components/SpriteText.cs b/Assets/Cryville/Crtr/Skin/Components/SpriteText.cs
index 6e8aad4..67d6b52 100644
--- a/Assets/Cryville/Crtr/Skin/Components/SpriteText.cs
+++ b/Assets/Cryville/Crtr/Skin/Components/SpriteText.cs
@@ -3,6 +3,7 @@ using Cryville.Common.Pdt;
using System;
using System.Collections.Generic;
using UnityEngine;
+using Logger = Cryville.Common.Logging.Logger;
namespace Cryville.Crtr.Skin.Components {
public class SpriteText : SpriteBase {
@@ -117,7 +118,11 @@ namespace Cryville.Crtr.Skin.Components {
tris[key].Clear();
}
foreach (var c in m_value) {
- var f = m_frames[c];
+ SpriteInfo f;
+ if (!m_frames.TryGetValue(c, out f)) {
+ Logger.Log("main", 3, "Skin", "Could not render the character '{0}' in the string \"{1}\" on the text component because no image is assigned to that character.", c, m_value);
+ continue;
+ }
var t = f.Frame.Texture;
float w = f.Ratio * m_size;
verts[t].Add(new Vector3(sum_x , 0, 0));
diff --git a/Assets/Plugins/Cryville.Common.Buffers.dll b/Assets/Plugins/Cryville.Common.Buffers.dll
index 2e0531b..f2b4e2e 100644
Binary files a/Assets/Plugins/Cryville.Common.Buffers.dll and b/Assets/Plugins/Cryville.Common.Buffers.dll differ
diff --git a/Assets/Plugins/Cryville.Common.Buffers.xml b/Assets/Plugins/Cryville.Common.Buffers.xml
index 2b0ade5..70441ff 100644
--- a/Assets/Plugins/Cryville.Common.Buffers.xml
+++ b/Assets/Plugins/Cryville.Common.Buffers.xml
@@ -236,6 +236,12 @@
Validates the string.
+
+
+ Returns the string the current represents.
+
+ The string the current represents.
+
Returns an enumerator that iterates through the .