File diff r20929:c7e920a92fe2 → r20930:77332499a14e
src/script/api/script_town.cpp
Show inline comments
 
@@ -45,7 +45,7 @@
 

	
 
	const char *text = NULL;
 
	if (name != NULL) {
 
		const char *text = name->GetDecodedText();
 
		text = name->GetDecodedText();
 
		EnforcePreconditionEncodedText(false, text);
 
		EnforcePreconditionCustomError(false, ::Utf8StringLength(text) < MAX_LENGTH_TOWN_NAME_CHARS, ScriptError::ERR_PRECONDITION_STRING_TOO_LONG);
 
	}