Fixed compile error in non-editor builds