Commit 0b8db9024e63ac8e9d637ac5ed2a9e63da9dae30

sammy 2008-04-12T22:41:39

* Fix an undefined operation in the FTGL demo.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/demo/FTGLDemo.cpp b/demo/FTGLDemo.cpp
index 4a3ebb8..272d113 100644
--- a/demo/FTGLDemo.cpp
+++ b/demo/FTGLDemo.cpp
@@ -408,7 +408,7 @@ void parsekey(unsigned char key, int x, int y)
 			{
 				myString[carat] = key;
 				myString[carat + 1] = 0;
-				carat = carat > 14 ? 14 : ++carat;
+				carat = carat > 14 ? 14 : carat + 1;
 			}
 	}