@@ -1483,22 +1483,22 @@ int32_t warpToMapByString(const char *map)
1483
1483
return SUCCESS;
1484
1484
}
1485
1485
1486
- uint32_t Mod::setIndexWarpEntrance (void *scriptContext , uint32_t waitMode)
1486
+ uint32_t Mod::setIndexWarpEntrance (void *event , uint32_t waitMode)
1487
1487
{
1488
1488
// Clear the array holding the loading zone names
1489
1489
clearMemory (WarpByIndex.EntranceList , sizeof (WarpByIndex.EntranceList ));
1490
1490
1491
1491
// Get the start of the loading zone addresses
1492
- uint32_t ScriptContextLZAddresses = *reinterpret_cast <uint32_t *>(
1493
- reinterpret_cast <uint32_t >(scriptContext ) + 0x9C );
1492
+ uint32_t eventLZAddresses = *reinterpret_cast <uint32_t *>(
1493
+ reinterpret_cast <uint32_t >(event ) + 0x9C );
1494
1494
1495
1495
// Loop through the loading zones and get the total amount of them
1496
- uint32_t tempScriptContextAddress = ScriptContextLZAddresses ;
1496
+ uint32_t tempEventAddress = eventLZAddresses ;
1497
1497
uint32_t LoadingZoneTotal = 0 ;
1498
1498
1499
- while (*reinterpret_cast <uint32_t *>(tempScriptContextAddress ))
1499
+ while (*reinterpret_cast <uint32_t *>(tempEventAddress ))
1500
1500
{
1501
- tempScriptContextAddress += 0x3C ;
1501
+ tempEventAddress += 0x3C ;
1502
1502
LoadingZoneTotal++;
1503
1503
}
1504
1504
@@ -1508,7 +1508,7 @@ uint32_t Mod::setIndexWarpEntrance(void *scriptContext, uint32_t waitMode)
1508
1508
{
1509
1509
tempEntranceArray[i] = reinterpret_cast <const char *>(
1510
1510
*reinterpret_cast <uint32_t *>(
1511
- ScriptContextLZAddresses + (i * 0x3C )));
1511
+ eventLZAddresses + (i * 0x3C )));
1512
1512
}
1513
1513
1514
1514
// Check to see if warping by index
@@ -1525,7 +1525,7 @@ uint32_t Mod::setIndexWarpEntrance(void *scriptContext, uint32_t waitMode)
1525
1525
// Valid entrance chosen
1526
1526
ChosenEntranceName = reinterpret_cast <const char *>(
1527
1527
*reinterpret_cast <uint32_t *>(
1528
- ScriptContextLZAddresses + (ChosenEntrance * 0x3C )));
1528
+ eventLZAddresses + (ChosenEntrance * 0x3C )));
1529
1529
}
1530
1530
else
1531
1531
{
@@ -1542,7 +1542,7 @@ uint32_t Mod::setIndexWarpEntrance(void *scriptContext, uint32_t waitMode)
1542
1542
}
1543
1543
1544
1544
// Call original function
1545
- return mPFN_evt_bero_get_info_trampoline (scriptContext , waitMode);
1545
+ return mPFN_evt_bero_get_info_trampoline (event , waitMode);
1546
1546
}
1547
1547
1548
1548
}
0 commit comments