port: fix uninitialized var in aiIfPresetsTargetIsNotMyTarget (fixes #542)

This commit is contained in:
fgsfds committed 2024-12-04 10:42:48 +01:00
1 parent 2386494030
commit 0e1a7e136a
1 file changed
+1 -1
+1 -1
View File
@@ -5948,7 +5948,7 @@ bool aiSetTarget(void)
*/
bool aiIfPresetsTargetIsNotMyTarget(void)
{
s32 mypresetchrstarget;
s32 mypresetchrstarget = -1;
u8 *cmd = g_Vars.ailist + g_Vars.aioffset;
if (g_Vars.chrdata->chrpreset1 != -1) {