summaryrefslogtreecommitdiffstats
path: root/core/hash_map.h
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-09-25 10:28:50 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-09-25 10:28:50 +0200
commit17732fe698b835c29f77c84f329b2ed6cab215ce (patch)
treeb95c08185e886dc6410ba8646e5ff839382b4e01 /core/hash_map.h
parente9f49a6d5ac88a6afca8a16f91a05f4fcdf5a589 (diff)
downloadredot-engine-17732fe698b835c29f77c84f329b2ed6cab215ce.tar.gz
Added some obvious errors explanations
Diffstat (limited to 'core/hash_map.h')
-rw-r--r--core/hash_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/hash_map.h b/core/hash_map.h
index 81ddc376d0..38da1d59ab 100644
--- a/core/hash_map.h
+++ b/core/hash_map.h
@@ -112,7 +112,7 @@ private:
void erase_hash_table() {
- ERR_FAIL_COND(elements);
+ ERR_FAIL_COND_MSG(elements, "Cannot erase hash table if there are still elements inside.");
memdelete_arr(hash_table);
hash_table = 0;