Added some documentation on the lights. Got most everything tidied up. Having some issues with std::moving unique ptrs. Going to change them to shared_ptr
This commit is contained in:
@@ -20,7 +20,7 @@ std::unique_ptr<LightHandle> LightController::create_light(LightPrototype light_
|
||||
unsigned int index = open_list.front();
|
||||
open_list.pop_front();
|
||||
|
||||
std::unique_ptr<PackedData> data(&packed_data_array.at(index));
|
||||
std::unique_ptr<PackedData> data(&packed_data_array.data()[index]);
|
||||
|
||||
std::unique_ptr<LightHandle> handle(new LightHandle(this, index, light_prototype, std::move(data)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user