1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #7526 from nounoursheureux/fix-getcurrentdrive

Fix _Directory::get_current_drive error condition from breaking the build
This commit is contained in:
Ignacio Etcheverry
2017-01-14 18:55:19 +01:00
committed by GitHub

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();
}