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:
MitchellHansen
2017-02-11 21:43:32 -08:00
parent bfb6d922a3
commit 6e0d5814e1
7 changed files with 68 additions and 20 deletions

View File

@@ -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)));