MOHAWK: Fix typo in script builder function

This commit is contained in:
Marc Vinyals 2022-04-15 21:33:29 +02:00 committed by Filippos Karapetis
parent 8eadac5eed
commit 84e761aef8

View File

@ -167,7 +167,7 @@ RivenScriptPtr RivenScriptManager::createScriptFromData(uint commandCount, ...)
uint16 argumentCount = va_arg(args, int);
writeStream.writeUint16BE(argumentCount);
for (uint j = 0; j < commandCount; j++) {
for (uint j = 0; j < argumentCount; j++) {
uint16 argument = va_arg(args, int);
writeStream.writeUint16BE(argument);
}