Replaced objlist_class with std::vector.

Fixed minor bug in TLightGroup.
Cleaned up some warnings.
This commit is contained in:
Muzychenko Andrey committed 2021-10-01 18:55:44 +03:00
1 parent 8a421a2623
commit 81c2034a16
54 files changed
+249 -453

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ void loader::loadfrom(DatFile* datFile)
loader_table = datFile;
sound_record_table = loader_table;
for (auto groupIndex = 0; groupIndex < datFile->Groups.size(); ++groupIndex)
for (auto groupIndex = 0; groupIndex < static_cast<int>(datFile->Groups.size()); ++groupIndex)
{
auto value = reinterpret_cast<int16_t*>(datFile->field(groupIndex, FieldTypes::ShortValue));
if (value && *value == 202)