fix argument check for assimp cmdline tool

`assimp cmpdump` expects two files as arguments.
so we need to check for at least 2 extra arguments (rather than only check
for !<1 and access both)
pull/689/head
IOhannes m zmölnig 2015-11-13 22:33:53 +01:00
parent 756cfd4f74
commit 989e8af3fb
1 changed files with 1 additions and 1 deletions

View File

@ -881,7 +881,7 @@ int Assimp_CompareDump (const char* const* params, unsigned int num)
}
// assimp cmpdump actual expected
if (num < 1) {
if (num < 2) {
std::cout << "assimp cmpdump: Invalid number of arguments. "
"See \'assimp cmpdump --help\'\r\n" << std::endl;
return 1;