mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Added custom theater palette support in Rules.ini. Fixed a crash bug in TS/RA2 SHP were referenced frames can exceed total SHP frames.
This commit is contained in:
@@ -4419,6 +4419,10 @@ void TechnoClass::Techno_Draw_Object(void const * shapefile, int shapenum, int x
|
||||
void const * remap = Remap_Table();
|
||||
void const * shadow = Map.UnitShadow;
|
||||
|
||||
if (shapenum >= Get_Build_Frame_Count(shapefile)) {
|
||||
shapenum = 0;
|
||||
}
|
||||
|
||||
#ifdef PARTIAL
|
||||
/*
|
||||
** Create a minimum shape rectangle if one hasn't already been
|
||||
|
||||
Reference in New Issue
Block a user