Updating code for logic to check the correct object to see if a palette update has happened. It now checks both the PCS for the palette update flag and the PDS to see if the palette version has been incremented.