From 54b20874b68fbf1cb84db4448ae344bd361d5826 Mon Sep 17 00:00:00 2001 From: Wilhem Barbier Date: Sat, 14 Jan 2017 18:47:06 +0100 Subject: [PATCH] Fix _Directory::get_current_drive error condition --- core/bind/core_bind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index d2264c6c6a7..657f527a518 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(); }