scriptreader.cxx

changeset 12
1bdbfcca2fc6
parent 11
f08abacb46c9
child 19
66993500719f
--- a/scriptreader.cxx	Sat Jul 14 15:58:50 2012 +0300
+++ b/scriptreader.cxx	Sat Jul 14 16:12:59 2012 +0300
@@ -195,8 +195,7 @@
 		header, filepath.chars(), curline, curchar, message);
 }
 
-// I guess this should be a void function putting the return value into token?
-str ScriptReader::MustGetString () {
+void ScriptReader::MustString () {
 	MustNext ("\"");
 	
 	str string;
@@ -213,7 +212,7 @@
 		string += c;
 	}
 	
-	return string;
+	token = string;
 }
 
 void ScriptReader::MustNumber () {

mercurial