More standard pointers.
This commit is contained in:
@ -18,9 +18,7 @@ DawnGame::DawnGame(const std::weak_ptr<DawnHost> host) :
|
||||
int32_t DawnGame::init() {
|
||||
this->assetManager.init();
|
||||
this->renderManager->init(weak_from_this());
|
||||
|
||||
this->scene = dawnGameGetInitialScene(this);
|
||||
|
||||
this->scene = dawnGameGetInitialScene(weak_from_this());
|
||||
return DAWN_GAME_INIT_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -90,5 +90,5 @@ namespace Dawn {
|
||||
* @param game Game that is requesting this scene.
|
||||
* @return Pointer to a scene that you wish to have as the default scene.
|
||||
*/
|
||||
std::shared_ptr<Scene> dawnGameGetInitialScene(DawnGame *game);
|
||||
std::shared_ptr<Scene> dawnGameGetInitialScene(std::weak_ptr<DawnGame> game);
|
||||
}
|
Reference in New Issue
Block a user