Fix _Directory::get_current_drive error condition

This commit is contained in:
Wilhem Barbier 2017-01-14 18:47:06 +01:00
parent ce99286362
commit 54b20874b6

View file

@ -1865,7 +1865,7 @@ String _Directory::get_drive(int p_drive){
return d->get_drive(p_drive);
}
int _Directory::get_current_drive() {
ERR_FAIL_COND_V(!d,"");
ERR_FAIL_COND_V(!d,0);
return d->get_current_drive();
}