mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10243] Traditional crash fix :/
This commit is contained in:
parent
a121f7a3e5
commit
62e0e020a0
2 changed files with 3 additions and 2 deletions
|
|
@ -995,6 +995,7 @@ ChatCommandSearchResult ChatHandler::FindCommand(ChatCommand* table, char const*
|
||||||
{
|
{
|
||||||
// command not found directly in child command list, return child command list owner
|
// command not found directly in child command list, return child command list owner
|
||||||
command = &table[i];
|
command = &table[i];
|
||||||
|
if (parentCommand)
|
||||||
*parentCommand = NULL; // we don't known parent of table list at this point
|
*parentCommand = NULL; // we don't known parent of table list at this point
|
||||||
|
|
||||||
text = oldchildtext; // restore text to stated just after parse found parent command
|
text = oldchildtext; // restore text to stated just after parse found parent command
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10242"
|
#define REVISION_NR "10243"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue