diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-06-28 21:54:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-28 15:54:06 -0600 |
| commit | 956058a32dfa3f26a20bc65fa83ac916fde073ab (patch) | |
| tree | 3c92ff722ba4265a40408f9768c5568e6c14756f /src/engine/ModelLoader.cpp | |
| parent | 35a28cd9336dbc4b199b180c93c8246c0efdbf9e (diff) | |
correct use of pointer and fix mistake (#394)
* correct use of pointer and fix mistake
* remove CM_WeirdLength
* Update Game.cpp
* Update Game.cpp
---------
Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
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); |
