mirror of
https://github.com/Relintai/sfw.git
synced 2024-12-20 21:06:49 +01:00
Fail if scene is null.
This commit is contained in:
parent
c6cdd2fed8
commit
3062dada73
@ -11,14 +11,20 @@
|
||||
#include "object/core_string_names.h"
|
||||
|
||||
void Application::input_event(const Ref<InputEvent> &event) {
|
||||
ERR_FAIL_COND(scene.is_null());
|
||||
|
||||
scene->input_event(event);
|
||||
}
|
||||
|
||||
void Application::update(float delta) {
|
||||
ERR_FAIL_COND(scene.is_null());
|
||||
|
||||
scene->update(delta);
|
||||
}
|
||||
|
||||
void Application::render() {
|
||||
ERR_FAIL_COND(scene.is_null());
|
||||
|
||||
scene->render();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user