diff options
author | Wilhem Barbier <nounoursheureux@openmailbox.org> | 2017-01-14 18:47:06 +0100 |
---|---|---|
committer | Wilhem Barbier <nounoursheureux@openmailbox.org> | 2017-01-14 18:47:06 +0100 |
commit | 54b20874b68fbf1cb84db4448ae344bd361d5826 (patch) | |
tree | 808bfe17f74b5511af757bfdb885735e21bd9f40 /core/bind | |
parent | ce99286362a7adbd867a2d73ec18b82aaa8f0b7d (diff) |
Fix _Directory::get_current_drive error condition
Diffstat (limited to 'core/bind')
-rw-r--r-- | core/bind/core_bind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index d2264c6c6a..657f527a51 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -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(); } |