diff options
| author | Thomas Rohloff <v10lator@myway.de> | 2025-07-19 11:32:15 +0200 |
|---|---|---|
| committer | Thomas Rohloff <v10lator@myway.de> | 2025-07-19 11:32:15 +0200 |
| commit | 4fdded9dbc878e06da6262fcc158a069858afbf8 (patch) | |
| tree | ce4e7e8711dff765b8c3c5275579ecebb2bd3503 /src/engine/ModelLoader.cpp | |
| parent | a3801d4a01fda8f9a0801b9eb17919e6fd92c590 (diff) | |
| parent | 94d9c315835cc95a57603a0cbee74cbfccf840eb (diff) | |
Merge remote-tracking branch 'upstream/main' into FLAGS
Diffstat (limited to 'src/engine/ModelLoader.cpp')
| -rw-r--r-- | src/engine/ModelLoader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/ModelLoader.cpp b/src/engine/ModelLoader.cpp index 1c41a8ca9..b73d98aee 100644 --- a/src/engine/ModelLoader.cpp +++ b/src/engine/ModelLoader.cpp @@ -18,7 +18,7 @@ void ModelLoader::Load() { _hasRan = true; // Set to track processed courses - std::unordered_set<Course*> processedCourses; + std::unordered_set<std::shared_ptr<Course>> processedCourses; for (auto& list : _deferredList) { // Check if the course has already been processed @@ -34,8 +34,8 @@ void ModelLoader::Load() { } } -void ModelLoader::Extract(Course* course) { - Course* saveCourse = gWorldInstance.CurrentCourse; +void ModelLoader::Extract(std::shared_ptr<Course> course) { + std::shared_ptr<Course> saveCourse = gWorldInstance.CurrentCourse; gWorldInstance.CurrentCourse = course; // Quick hack so that `get_texture` will find the right textures. size_t vtxSize = (ResourceGetSizeByName(course->vtx) / sizeof(CourseVtx)) * sizeof(Vtx); |
