mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-12 13:35:52 -04:00
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>
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
#include "Cup.h"
|
||||
#include "courses/Course.h"
|
||||
|
||||
Cup::Cup(std::string id, const char* name, std::vector<Course*> courses) {
|
||||
Cup::Cup(std::string id, const char* name, std::vector<std::shared_ptr<Course>> courses) {
|
||||
Id = id;
|
||||
Name = name;
|
||||
Courses = courses;
|
||||
@@ -30,7 +30,7 @@ void Cup::SetCourse(size_t position) {
|
||||
CursorPosition = position;
|
||||
}
|
||||
|
||||
Course* Cup::GetCourse() {
|
||||
std::shared_ptr<Course> Cup::GetCourse() {
|
||||
return Courses[CursorPosition];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user