- Fixed: strcpy on map arrays didn't properly translate the array number.

SVN r4160 (trunk)
This commit is contained in:
Braden Obrzut 2013-02-22 18:42:26 +00:00
parent 356bfe81e3
commit 47e7ab21cc
1 changed files with 6 additions and 1 deletions

View File

@ -7327,7 +7327,12 @@ scriptwait:
{
case PCD_STRCPYTOMAPCHRANGE:
{
Stack[sp-6] = activeBehavior->CopyStringToArray(STACK(5), index, capacity, lookup);
int a = STACK(5);
if (a < NUM_MAPVARS && a > 0 &&
activeBehavior->MapVars[a])
{
Stack[sp-6] = activeBehavior->CopyStringToArray(*(activeBehavior->MapVars[a]), index, capacity, lookup);
}
}
break;
case PCD_STRCPYTOWORLDCHRANGE: