Fixed crash bug in the shaderlang test

Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
This commit is contained in:
Vinzenz Feenstra 2014-02-14 20:51:55 +01:00
parent c12a8e922f
commit 96bc0c9f15

View File

@ -288,8 +288,7 @@ MainLoop* test() {
FileAccess *fa = FileAccess::open(test,FileAccess::READ);
if (!fa) {
memdelete(fa);
if (!fa) {
ERR_FAIL_V(NULL);
}