Implemented a read check between ui/play/data fields with a meaningful error

This commit is contained in:
ZZYZX 2017-02-17 22:46:18 +02:00
commit a2f3d8511d
2 changed files with 16 additions and 7 deletions

View file

@ -182,7 +182,7 @@ struct FScopeBarrier
if ((sideto == Side_UI) != (sidefrom == Side_UI)) // only ui -> ui is readable
{
readable = false;
readerror.Format("Can't read %s field %s from %s context", StringFromSide(sideto), StringFromSide(sidefrom));
readerror.Format("Can't read %s field %s from %s context", StringFromSide(sideto), name, StringFromSide(sidefrom));
}
if (!readable)