Przeglądaj źródła

Minor fix to resource-compiler

Daniele Bartolini 12 lat temu
rodzic
commit
09766b76a8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tools/cli/resource-compiler.cpp

+ 2 - 2
tools/cli/resource-compiler.cpp

@@ -168,12 +168,12 @@ int main(int argc, char** argv)
 		char out_name[1024];
 		snprintf(out_name, 1024, "%.8X%.8X", resource_name_hash, resource_type_hash);
 
-		cout << out_name << " <= " << argv[first_resource + i] << endl;
+		cout << out_name << " <= " << resource << endl;
 
 		map<std::string, Compiler*>::iterator it = compilers.find(resource_type);
 		if (it != compilers.end())
 		{
-			if (!it->second->compile(root_path, dest_path, argv[first_resource + i], out_name))
+			if (!it->second->compile(root_path, dest_path, resource, out_name))
 			{
 				cout << "Exiting." << endl;
 				exit(EXIT_FAILURE);