Browse Source

Fix manifest generation bug in Android export

Pedro J. Estébanez 9 years ago
parent
commit
2c9d98bb48
1 changed files with 4 additions and 6 deletions
  1. 4 6
      platform/android/export/export.cpp

+ 4 - 6
platform/android/export/export.cpp

@@ -913,15 +913,13 @@ void EditorExportPlatformAndroid::_fix_manifest(Vector<uint8_t>& p_manifest,bool
 	}
 
 
-	ret.resize(ret.size()+stable_extra.size());
-	while(ret.size()%4)
-		ret.push_back(0);
-
 	for(int i=0;i<stable_extra.size();i++) {
-
-		chars[i]=stable_extra[i];
+		ret.push_back(stable_extra[i]);
 	}
 
+	while(ret.size()%4)
+		ret.push_back(0);
+
 
 	uint32_t new_stable_end=ret.size();