mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: strcpy on map arrays didn't properly translate the array number.
SVN r4160 (trunk)
This commit is contained in:
parent
356bfe81e3
commit
47e7ab21cc
1 changed files with 6 additions and 1 deletions
|
@ -7327,7 +7327,12 @@ scriptwait:
|
||||||
{
|
{
|
||||||
case PCD_STRCPYTOMAPCHRANGE:
|
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;
|
break;
|
||||||
case PCD_STRCPYTOWORLDCHRANGE:
|
case PCD_STRCPYTOWORLDCHRANGE:
|
||||||
|
|
Loading…
Reference in a new issue