From b4cacf3e7cfb836528765dda2591e018bccbe588 Mon Sep 17 00:00:00 2001
From: Shon Ferguson <shonferg@users.sourceforge.net>
Date: Wed, 15 Mar 2006 05:59:52 +0000
Subject: [PATCH] One more text fix.

---
 NIF_Blocks.cpp | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/NIF_Blocks.cpp b/NIF_Blocks.cpp
index 58e133e3..1b2ea083 100644
--- a/NIF_Blocks.cpp
+++ b/NIF_Blocks.cpp
@@ -3697,6 +3697,12 @@ string NiControllerSequence::asString() const {
 		<< "Unknown Int 1:  " << unk_int1 << endl
 		<< "Kf Children:";
 
+	if ( children.size() == 0 ) {
+		out << "  None" << endl;
+	} else {
+		out << endl;
+	}
+
 	//Check for a string palette
 	string pal;
 	blk_ref str_pal = GetAttr("String Palette")->asLink();
@@ -4460,8 +4466,8 @@ string NiStringPalette::asString() const {
 	out << "String Palette:" << endl
 		<< "   0:  ";
 
-	for ( uint i = 0; i < pal.size(); ++i ) {
-		if ( pal[i] == '\0' ) {
+	for ( uint i = 0; i < pal.size() - 1; ++i ) {
+		if ( pal[i] == '\0') {
 			out << endl << "   " << i + 1 << ":  ";
 		} else {
 			out << pal[i];
-- 
GitLab